thegr8brian
Posts: 11
Joined: Mon Sep 10, 2012 5:42 pm

Re: Logitech k400 keyboard and v3.2

Tue Oct 02, 2012 1:57 pm

This patch linked from the ubuntu ticket looks interesting.

https://lkml.org/lkml/2012/8/20/378

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Logitech k400 keyboard and v3.2

Tue Oct 02, 2012 2:04 pm

It does look interesting.... Unfortunately I can't check to see if the driver already contains this patch at this time.
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

PaulCheffus
Posts: 381
Joined: Tue May 29, 2012 2:51 pm
Location: Lincolnshire UK

Re: Logitech k400 keyboard and v3.2

Tue Oct 02, 2012 2:52 pm

Hi

This would suggest as Dom mentioned a while back that it is the mainstream Debian distro that is at fault which I believe Raspbian is derived from.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658029

Cheers

Paul
Procrastination - The Thief of Time.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Logitech k400 keyboard and v3.2

Wed Oct 03, 2012 8:07 am

Paul - did you ever try the workaround I suggested? Since it worked for some, that suggests that it is related to the USB subsystem ( a non-trivial problem and actively being worked on) and not the Logitech driver itself. (Although there may be some other issues with the Logitech driver. It has been changed in newer Linux kernels)
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

PaulCheffus
Posts: 381
Joined: Tue May 29, 2012 2:51 pm
Location: Lincolnshire UK

Re: Logitech k400 keyboard and v3.2

Wed Oct 03, 2012 9:07 am

MaxK1 wrote:Paul - did you ever try the workaround I suggested? Since it worked for some, that suggests that it is related to the USB subsystem ( a non-trivial problem and actively being worked on) and not the Logitech driver itself. (Although there may be some other issues with the Logitech driver. It has been changed in newer Linux kernels)
Hi

I have been using the unplug and plug back in workaround once it has booted as occasionally it works without this.

Cheers

Paul
Procrastination - The Thief of Time.

ski522
Posts: 394
Joined: Sun Sep 30, 2012 2:22 pm

Re: Logitech k400 keyboard and v3.2

Wed Oct 03, 2012 5:59 pm

Add me to the list of it not working...neither removing/inserting the module via rc.local works or physically inserting/removing the usb receiver works. Guess I'll wait at this point as it looks like the problem might be related to the Debian distro.

Lemme
Posts: 3
Joined: Wed Oct 03, 2012 8:03 pm

Re: Logitech k400 keyboard and v3.2

Wed Oct 03, 2012 8:09 pm

Hi - I have a question regarding this issue, as I have the same problems with my keyboard.
Has this issue been escalated in any way, is the problem visible for the developers? I was just wondering if the problem is actually being worked on, is there some sort of error log where it is described and it's progress?

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Logitech k400 keyboard and v3.2

Wed Oct 03, 2012 11:40 pm

It would be real handy if someone could fire up a 3.2.27 system on an x86 machine and verify that either:
a - the problem exists (which would mean it's the Logitech driver)
b - it doesn't ever have a problem (which would mean it's the Synoptics USB driver.

My money is on b....
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

AnotherMuggle
Posts: 2
Joined: Tue Oct 09, 2012 8:38 pm
Location: Staffordshire UK

Re: Logitech k400 keyboard and v3.2

Tue Oct 09, 2012 9:00 pm

I have posted a hacky workaround for anyone who is interested. I posted in this thread, and it is currently waiting for approval by an admin.

http://www.raspberrypi.org/phpBB3/viewt ... 46&t=18139

AndersKOlsson
Posts: 1
Joined: Sat Oct 13, 2012 5:05 pm

Re: Logitech k400 keyboard and v3.2

Sat Oct 13, 2012 6:35 pm

Hi,

I found one solution to this problem, which I thought could be of interest.

In the bootup messages on my system, I saw that there was a problem to open "/dev/input/event*". I added a line with

Code: Select all

evdev
to the end of "/etc/modules", since this is the module for event devices. Since then, I haven't had to re-plug my receiver any more.

I'm not quite sure what what this actually achieved, "hid_logitech_dj" should surely already depend on this module. Also I'm having a hard time reproducing it, since things still work when I remove the line from "/etc/modules". I assume this has to do with the dev tree now having the devices created.

User avatar
dliloch
Posts: 173
Joined: Wed Jun 27, 2012 6:28 pm
Location: cleveland, ohio usa

Re: Logitech k400 keyboard and v3.2

Sat Oct 13, 2012 8:03 pm

solved the issue for me! thanks!

michaelp
Posts: 6
Joined: Mon Aug 13, 2012 3:38 pm

Re: Logitech k400 keyboard and v3.2

Thu Oct 25, 2012 1:24 pm

Sorry but I am lost by all of this.
I bought a Logitech K400 having read it worked fine, but now find that although it did, it doesn't now.
1. What is the best workaround, the one posted by AnotherMuggle or the 'evdev' one above?
2. It appears it is a Debian bug that has been resolved - will this appear in a new Raspbian at some point?
3. Which is the best keyboard to choose in the Raspi-config list for the K400?
Thank you
Michael

PaulCheffus
Posts: 381
Joined: Tue May 29, 2012 2:51 pm
Location: Lincolnshire UK

Re: Logitech k400 keyboard and v3.2

Thu Oct 25, 2012 1:29 pm

michaelp wrote:Sorry but I am lost by all of this.
I bought a Logitech K400 having read it worked fine, but now find that although it did, it doesn't now.
1. What is the best workaround, the one posted by AnotherMuggle or the 'evdev' one above?
2. It appears it is a Debian bug that has been resolved - will this appear in a new Raspbian at some point?
3. Which is the best keyboard to choose in the Raspi-config list for the K400?
Thank you
Michael
Hi

1) AnotherMuggle's workaround works for me.
2) Don't know but I hope so.
3) Not sure what you mean here as when I set mine up I didn't choose a keyboard in the Raspi-config.

Cheers

Paul
Procrastination - The Thief of Time.

ski522
Posts: 394
Joined: Sun Sep 30, 2012 2:22 pm

Re: Logitech k400 keyboard and v3.2

Thu Oct 25, 2012 1:46 pm

As the prior posted mention try the following

Code: Select all

sudo nano /etc/rc.local
add the following to the bottom and reboot. See if that clears it up.

Code: Select all

printf "Remove hid-logitech-dj\n"
sleep 5 
rmmod hid-logitech-dj 
sleep 5 
printf "Insert hid-logitech-dj\n"
modprobe hid-logitech-dj
reboot

itsonlyme
Posts: 132
Joined: Sun Feb 12, 2012 12:43 pm

Re: Logitech k400 keyboard and v3.2

Thu Oct 25, 2012 2:00 pm

On the last few boots mine seems to be working fine. I have never applied any of the above workarounds but have regularly updated.

Has it been fixed, or am I just having a lucky few days?

helix
Posts: 3
Joined: Sat Nov 10, 2012 2:21 am

Re: Logitech k400 keyboard and v3.2

Sat Nov 10, 2012 2:34 am

Sleep Mode zZ wrote:Added the two lines to /etc/rc.local:

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

rmmod hid-logitech-dj
modprobe hid-logitech-dj
exit 0
This worked for me too. Thanks Sleep Mode zZ!!

Just for good measure I also added AnotherMuggle's workaround.

Sleep Mode zZ
Posts: 319
Joined: Sun Aug 19, 2012 5:56 am
Location: Finland

Re: Logitech k400 keyboard and v3.2

Sat Nov 10, 2012 4:22 am

helix wrote: This worked for me too. Thanks Sleep Mode zZ!!
I will remind that the workaround is originally from MaxK1, not from me. Glad that it was helpful.

I also remind that it is hard to make definitive conclusions about the helpfulness of a workaround because the keyboard might work even ten boots in a row and then fail the eleventh boot...
itsonlyme wrote:On the last few boots mine seems to be working fine. I have never applied any of the above workarounds but have regularly updated.

Has it been fixed, or am I just having a lucky few days?
Could be lucky days... Do the success still continue?
I still need occasionally to replug - so it is not fixed on my system. (I only update & upgrade with apt-get, not with rpi-update.)

itsonlyme
Posts: 132
Joined: Sun Feb 12, 2012 12:43 pm

Re: Logitech k400 keyboard and v3.2

Sat Nov 10, 2012 9:20 am

It was lucky days, although the times I need to unplug and re-plug are far less than "lucky" start-ups

Mordecay
Posts: 1
Joined: Thu Nov 15, 2012 10:50 pm

Re: Logitech k400 keyboard and v3.2

Thu Nov 15, 2012 11:12 pm

Hello
'm Still new to Linux and the RPI.

Where can I "/ etc / rc.local:" see?

Thanks in advance for the help.

ski522
Posts: 394
Joined: Sun Sep 30, 2012 2:22 pm

Re: Logitech k400 keyboard and v3.2

Fri Nov 16, 2012 12:22 am

from a shell prompt

Code: Select all

sudo nano /etc/rc.local

pmendiuk
Posts: 1
Joined: Sat Jan 05, 2013 7:04 pm

Re: Logitech k400 keyboard and v3.2

Sat Jan 05, 2013 7:07 pm

The work arounds didn't work for me. I have to unplug/replug at every boot.

PaulCheffus
Posts: 381
Joined: Tue May 29, 2012 2:51 pm
Location: Lincolnshire UK

Re: Logitech k400 keyboard and v3.2

Sat Jan 05, 2013 10:40 pm

pmendiuk wrote:The work arounds didn't work for me. I have to unplug/replug at every boot.
Hi

Are you using a later version 3.6.x as I found the workaround has the opposite effect with this version and removing the workaround makes it work correctly. I am assuming the underlying issue has now been fixed as this keyboard worked with 3.1.9 but then broke in 3.2.27 and is now working again in 3.6.11.

Cheers

Paul
Procrastination - The Thief of Time.

anasm
Posts: 1
Joined: Sun Feb 10, 2013 8:42 pm

Re: Logitech k400 keyboard and v3.2

Sun Feb 10, 2013 8:50 pm

Thank you very much MaxK1.
I'm not very familiar with Linux and was disapointed when i had to plug / unplung my k400 dongle at anytime I boot or reboot my rpi and i had no solution and no ability to find one.
I ve tryed a google search with my keyboard name associated to "raspberry" found this forum and your miracle solution which is still working after many reboots.
Good luck to the others.

Mekai
Posts: 19
Joined: Tue Jan 22, 2013 10:52 am

Re: Logitech k400 keyboard and v3.2

Wed Mar 06, 2013 9:56 am

I cant get this to work with the newest version of Raspbian, anyone else having problems ?

The

Code: Select all

rmmod hid-logitech-dj
modprobe hid-logitech-dj
Dosnt work for me :(

PaulCheffus
Posts: 381
Joined: Tue May 29, 2012 2:51 pm
Location: Lincolnshire UK

Re: Logitech k400 keyboard and v3.2

Wed Mar 06, 2013 10:30 am

Mekai wrote:I cant get this to work with the newest version of Raspbian, anyone else having problems ?

The

Code: Select all

rmmod hid-logitech-dj
modprobe hid-logitech-dj
Dosnt work for me :(
Hi

I had to remove those lines to get the keyboard to work with 3.6.11 with them in the keyboard needed to be unplugged and plugged back in before it worked.

Cheers

Paul
Procrastination - The Thief of Time.

Return to “Troubleshooting”