Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I have a Logitech K400 wireless keyboard/mouse that I use with my Raspberry Pi (the new 512MB model). I have Raspbmc installed. I'd say about 50% of the time when I boot the device, the keyboard and mousepad do not do anything.

I can still use the web interface though and I can still SSH into the device. It is definitely not hanging.

share|improve this question
1  
I hate to state the obvious, but how far are your keyboard/mouse from the Pi? Make sure that you're in range and that there's a clear signal (no physical blocking the infrared, etc.) –  Munkeh Oct 29 '12 at 23:06
1  
Power issue? How is the keyboard/mouse receiver powered? –  Jivings Oct 30 '12 at 0:22
    
Good comments, I should have addressed both of these. I'm literally standing right on top of the unit when I test this. When the keyboard works, it works from across the room (at least 20 feet). It's RF, not infrared. I thought it might be a power issue too. The receiver is plugged directly into the Pi. The K400 is a pretty popular keyboard for the Pi, and I haven't seen any reports of frequent issues. I'm using a 1A 5V power adapter. I measured 4.98V across the test points on the board. I'm not saying that it can't be a power issue, but my first guess is some Linux config thing. –  Luke Oct 30 '12 at 0:54
2  
I have the same keyboard and I don't even get close to 50%. It works only very sporadically since the newest Raspbmc RC. The previous one accepted the keyboard just fine. I did find the following page which indicates other people have reported difficulties as well. –  Derecho Oct 30 '12 at 8:33
    
@Derecho is there a way to get a previous release and force it? I'm also a little upset that the newest release doesn't support the HTTP API so the "Official XBMC Remote" for android doesn't work... –  Luke Oct 30 '12 at 19:23

2 Answers 2

up vote 4 down vote accepted

According to this thread, it is a kernel issue. There is some general discussion on how to resolve the issue. The poster of that thread says that in the end editing /etc/rc.local to include the following worked for him:

sleep 2
rmmod hid-logitech-dj
sleep 3
modprobe hid-logitech-dj
exit 0

I have tried the same and have not had any additional problems as of yet.

share|improve this answer

Now it works correctly.

To change the layout to French:

root@raspberrypi:~# echo "setxkbmap fr" > ~/.xsessionrc

To prevent the keyboard from freezing at boot, add the following to /etc/rc.local:

# Configure keyboard by John
sleep 2
rmmod hid-logitech-dj
sleep 3
modprobe hid-logitech-dj
share|improve this answer
    
Can you please elaborate on what you're saying here? It looks like you are saying the exact same thing as my answer here. I'm not sure what the purpose of changing the layout to French is. Are you in France? Is your keyboard French? –  Luke Jan 7 '13 at 18:29

protected by Community Aug 9 '13 at 16:23

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.