Logitech K400 Help


13 posts
by JRebellion » Thu Jan 24, 2013 5:32 am
I know I am the 1000th person to ask for help with this device and I have scoured the forums and cannot find anyone having the same issues as me. My K400 works normally on a Windows 8 computer, however I cannot make it work on Raspbian. My Logitech T650 works great with the Unifying receiver on Rpi, but the K400 not at all. I tried the fix with various sleeps times with the edit to the /etc/rc.local file and I have attempted unplugging and plugging in the receiver. I am on the 3.6.11+ kernel and had the same luck with the 3.2.7 kernel. Any ideas?
Posts: 3
Joined: Thu Jan 24, 2013 5:26 am
by PaulCheffus » Thu Jan 24, 2013 4:17 pm
JRebellion wrote:I know I am the 1000th person to ask for help with this device and I have scoured the forums and cannot find anyone having the same issues as me. My K400 works normally on a Windows 8 computer, however I cannot make it work on Raspbian. My Logitech T650 works great with the Unifying receiver on Rpi, but the K400 not at all. I tried the fix with various sleeps times with the edit to the /etc/rc.local file and I have attempted unplugging and plugging in the receiver. I am on the 3.6.11+ kernel and had the same luck with the 3.2.7 kernel. Any ideas?


Hi

I have one of these keyboards and it works fine in my Pi running 3.6.11+.

What symptons are you getting?
What do you see if you type lsusb? (connected using SSH or using a different keyboard)
What do you see if you type lsmod?
When it boots do you see the following?
Code: Select all
[   11.000651] logitech-djreceiver 0003:046D:C52B.0003: hiddev0: USB HID v1.11 Device [Logitech USB Receiver] on usb-bcm2708_usb-1.3/input2
[   11.416445] input: Logitech Unifying Device. Wireless PID:400e as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.2/0003:046D:C52B.0003/input/input0
[   11.469070] logitech-djdevice 0003:046D:C52B.0004: input: USB HID v1.11 Keyboard [Logitech Unifying Device. Wireless PID:400e] on usb-bcm2708_usb-1.3:1


Cheers

Paul
Procrastination - The Thief of Time.
Posts: 372
Joined: Tue May 29, 2012 2:51 pm
Location: Lincolnshire UK
by JRebellion » Fri Jan 25, 2013 4:07 am
There aren't any "symptoms", it just doesn't work.

Here is the lsusb:
Code: Select all
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 046d:c315 Logitech, Inc. Classic New Touch Keyboard
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 006: ID 046d:c52b Logitech, Inc. Unifying Receiver


Here is lsmod:
Code: Select all
Module                  Size  Used by
snd_bcm2835            13018  1
snd_pcm                77560  1 snd_bcm2835
snd_page_alloc          5145  1 snd_pcm
snd_seq                53329  0
snd_seq_device          6438  1 snd_seq
snd_timer              19998  2 snd_pcm,snd_seq
snd                    58447  7 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
joydev                  9316  0
evdev                   9426  4
leds_gpio               2235  0
led_class               3562  1 leds_gpio
hid_logitech_dj        10733  0


Yes I have similar lines of code on boot.
Posts: 3
Joined: Thu Jan 24, 2013 5:26 am
by sdjf » Fri Jan 25, 2013 6:51 am
Power supply could be inadequate? Can you measure TP1-TP2 with and without keyboard plugged in?
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || This Pi owner is running Arch on 512MB Model B.
Posts: 1297
Joined: Fri Mar 16, 2012 5:20 am
Location: California
by Canoeman » Mon Jan 28, 2013 6:21 pm
One thing I noticed, is that the K400 dongle did not work in the powered hub, but worked when plugging in directly to the PI.
Everything else works out ok from the powered hub.
I am using the powered hub sold by Adafruit.com, in their raspberry PI section, of their online catalog.

Canoeman
Posts: 6
Joined: Mon Jan 28, 2013 5:23 pm
by sdjf » Tue Jan 29, 2013 2:47 pm
Canoeman, have you tried unplugging everything from the hub except your dongle, to see if it is possible for it to work from the hub? You might just have more devices plugged in to the hub than it can supply power for. the other thing to do is measure TP1-TP2 with and without the dongle added to the devices using the powered hub. Should be 4.75-5.25, and if 4.75 and dips below 4.75 at all, that could cause problems.
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || This Pi owner is running Arch on 512MB Model B.
Posts: 1297
Joined: Fri Mar 16, 2012 5:20 am
Location: California
by JRebellion » Thu Jan 31, 2013 4:11 am
I am using a cell phone power adapter and tested voltage at 5.13 volts. Is it possible that that much voltage over what is needed is causing the problem?
Posts: 3
Joined: Thu Jan 24, 2013 5:26 am
by sdjf » Fri Feb 01, 2013 6:13 pm
That power should be fine, is within range of 4.75-5.25.

I want to see which driver this device should be bound to, you might need to do a modprobe to get it recognized. Anybody know?

The entry I see in modules.alias in my Arch system looks weird, but try the following with your dongle plugged in:

modprobe hid_logitech_dj

Or maybe

modprobe -v hid_logitech_dj

Sometimes devices plugged in via usb are not attached to the desired driver without running modprobe.

Not sure how to automate it, but let's get it recognized first.
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || This Pi owner is running Arch on 512MB Model B.
Posts: 1297
Joined: Fri Mar 16, 2012 5:20 am
Location: California
by sdjf » Fri Feb 01, 2013 6:56 pm
Have had a chance to see what to look for when a device is attached to a driver.

Examine /var/log/everything.log and if you can find a line that says something like the following, then the device is attached to the driver. I do not see anything looking like this line in the output posted so far in this thread, and it is getting attached to the driver that is important, just having your Pi see the device is only the first step.

The line is too long and complex for me to transcribe everything I see on the line for my PDA, so here are the basic elements for my zaurus, your numbers and device name would be different:

date kernel: [ sequence numbers] zaurus 1-1.2.1:1.0: usb0: register 'zaurus' at usb-bcm2708_usb-1.2.1, Sharp Zaurus SL-%x00, (long product id number is last on line)

the key words to look for are "register", the driver name, and your device name, all on one line, if my 3.6.11-2 Arch kernel gives same sort of listings as yours.

If you see that, then it is attached and if it still does not work, at least you know a little more to help figure out why.
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || This Pi owner is running Arch on 512MB Model B.
Posts: 1297
Joined: Fri Mar 16, 2012 5:20 am
Location: California
by mhatmaker » Mon Feb 18, 2013 5:56 pm
In case this helps anyone with the K400 and Raspberry Pi: I also had no problem using my K400 wireless keyboard with Windows machines. I tried to use it with Raspberry Pi, and it just didn't work. The Logitech unifying receiver was showing up in 'lsusb', but it just wasn't working.

On a hunch, I couldn't remember to which device I had last paired the logitech unifying receiver. So I put it back in my Windows computer, installed the logitech unifying software, paired the K400...

Then, when I tried it again on Raspberry Pi, it worked without issue. So if you are having problems getting K400 logitech keyboard with Raspberry Pi, try pairing it with a Windows computer first (so the unifying receiver and the K400 are "paired," I suppose).

Hope this helps.
Posts: 1
Joined: Mon Feb 18, 2013 5:52 pm
by fhdrin » Sat Dec 14, 2013 8:19 am
i just installed solaar on my main linux desktop and was able to pair the k400 that way.
Posts: 6
Joined: Sun Dec 08, 2013 12:37 am
by FractalSystems » Wed Jan 08, 2014 12:50 am
https://github.com/pwr/Solaar for the win! Thanks
Posts: 1
Joined: Wed Jan 08, 2014 12:47 am
by misterperry » Wed Jan 08, 2014 6:52 am
I had this problem during the initial setup. When I plugged in an 'unused' logitech usb dongle to my pi, neither the keyboard or mouse would work.

Following on from previous comments in this thread, I tried the logitech dongle from my pc which I had previously paired to several other logitech devices. They all work on the pi perfectly.

I don't know what the unifying software does to configure the dongle during pairing but the pi setup program recognises it immediately.
Posts: 1
Joined: Wed Jan 08, 2014 6:38 am