LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-11-2017, 07:50 AM   #1
jarvini
LQ Newbie
 
Registered: May 2006
Posts: 9

Rep: Reputation: 0
Angry X-server disconnects the keyboard


Hi!
I have tried several months to use display managers (DM) in sid, but every time the program tries to start a DM (supposedly the X-server) the keyboard is disconnected. I have tried every DM in my installation with the same result. Its utterly irritating because only method to escape the situation is to disconnect the PC from electricity. I have updated the kernel every time a new is released in debian sid. For me it is newertheless no catastroph because i use also debian Jessie. Could someone give me a hint how I can continue to resolv the problem.
jarvini.
 
Old 11-11-2017, 08:25 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,609
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
A few questions come to mind:

1) What happens when you launch X with startx? Does the keyboard work then?
2) Does your mouse work when the keyboard doesn't? If not, it's a problem with evdev or udev.
3) Have you looked at /var/log/Xorg.0.log? In particular, can you see the keyboard being recognised? For example, I have:
Code:
[    91.797] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[    91.797] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[    91.797] (**) AT Translated Set 2 keyboard: Applying InputClass "Keyboard0"
[    91.797] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[    91.797] (**) AT Translated Set 2 keyboard: always reports core events
[    91.797] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event3"
[    91.797] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[    91.797] (--) evdev: AT Translated Set 2 keyboard: Found keys
[    91.797] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
My instinct is to think it's a udev rule problem. Is there a significant difference in the udev input rules files (for example evdev-rules) between Jessie and Sid?
 
1 members found this post helpful.
Old 11-11-2017, 10:17 AM   #3
jarvini
LQ Newbie
 
Registered: May 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you for responding.
to answer your questions.
1) Launching with startx behaves exactly the same way as with trying with DM:s
2) Mouse stops working at the same time. I also suspected udev. In fact the issue appeared after a update.
3) /var/log/xorg.0.log does not tell me anything. Here are the trailing messages:
[ 3315.843] (**) AT Translated Set 2 keyboard: always reports core events
[ 3315.843] (**) Option "Device" "/dev/input/event1"
[ 3315.843] (**) Option "_source" "server/udev"
[ 3315.844] (II) event1 - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[ 3315.844] (II) event1 - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[ 3315.844] (II) event1 - (II) AT Translated Set 2 keyboard: (II) device removed
[ 3315.853] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event1"
[ 3315.853] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 11)
[ 3315.853] (**) Option "xkb_model" "pc105"
[ 3315.853] (**) Option "xkb_layout" "fi"
[ 3315.853] (**) Option "xkb_options" "compose:rwin,terminate:ctrl_alt_bksp"
[ 3315.854] (II) event1 - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[ 3315.854] (II) event1 - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[ 3315.855] (II) config/udev: Adding input device PC Speaker (/dev/input/event0)
[ 3315.855] (II) No input driver specified, ignoring this device.
[ 3315.855] (II) This device may have been added with another device file.
[ 3315.862] (**) MOSART Semi. Wireless Keyboard & Mouse: Applying InputClass "evdev pointer catchall"
[ 3315.862] (**) MOSART Semi. Wireless Keyboard & Mouse: Applying InputClass "evdev keyboard catchall"
[ 3315.862] (**) MOSART Semi. Wireless Keyboard & Mouse: Applying InputClass "libinput pointer catchall"
[ 3315.862] (**) MOSART Semi. Wireless Keyboard & Mouse: Applying InputClass "libinput keyboard catchall"
[ 3315.862] (II) Using input driver 'libinput' for 'MOSART Semi. Wireless Keyboard & Mouse'
[ 3315.862] (**) MOSART Semi. Wireless Keyboard & Mouse: always reports core events
[ 3315.862] (**) Option "Device" "/dev/input/event6"
[ 3315.862] (**) Option "_source" "_driver/libinput"
[ 3315.863] (II) libinput: MOSART Semi. Wireless Keyboard & Mouse: is a virtual subdevice
[ 3315.863] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.1/0003:062A:0102.0002/input/input8/event6"
[ 3315.863] (II) XINPUT: Adding extended input device "MOSART Semi. Wireless Keyboard & Mouse" (type: KEYBOARD, id 12)
[ 3315.863] (**) Option "xkb_model" "pc105"
[ 3315.863] (**) Option "xkb_layout" "fi"
[ 3315.863] (**) Option "xkb_options" "compose:rwin,terminate:ctrl_alt_bksp"
[ 3323.953] (WW) RADEON(0): flip queue failed: Invalid argument
[ 3323.953] (WW) RADEON(0): Page flip failed: Invalid argument
[ 3323.954] (WW) RADEON(0): flip queue failed: Invalid argument
[ 3323.954] (WW) RADEON(0): Page flip failed: Invalid argument

There are so many udev-rules so I cant know whitch to compare, can you help?

jarvini
 
Old 11-11-2017, 11:24 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,609
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Certainly the evdev rules, anything with input in the title and the default rules. I notice that your keyboard uses libinput and Debian has a udev file for that too. And I've noticed an xorg-xkb.rules file. Doing a diff on the /lib/udev/rules.d directories for sid and jessie might be an idea too, since you say jessie works.
 
1 members found this post helpful.
Old 11-11-2017, 01:05 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i recently saw a very similar thread and in the end the fault was with a custom script that disabled a device identified via libinput (xinput) ids, only the id had changed meanwhile...
anyhow, is there anything non-standard in your system that you should tell us about?
 
Old 11-11-2017, 02:30 PM   #6
jarvini
LQ Newbie
 
Registered: May 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hazel View Post
Certainly the evdev rules, anything with input in the title and the default rules. I notice that your keyboard uses libinput and Debian has a udev file for that too. And I've noticed an xorg-xkb.rules file. Doing a diff on the /lib/udev/rules.d directories for sid and jessie might be an idea too, since you say jessie works.
Thank you for the suggestions.
I will compare the files. Doing a diff on the /lib/udev/rules.d directories could scarsely be to any help it generates 378KB with differences.

jarvini
 
Old 11-11-2017, 02:38 PM   #7
jarvini
LQ Newbie
 
Registered: May 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ondoho View Post
i recently saw a very similar thread and in the end the fault was with a custom script that disabled a device identified via libinput (xinput) ids, only the id had changed meanwhile...
anyhow, is there anything non-standard in your system that you should tell us about?
Yes, I use a non-standard kernel because I do not want to use a initramfile. I compile every kernel myself but that cant be the fault because I often use the same kernel in both OS:s

jarvini
 
Old 11-11-2017, 05:07 PM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by jarvini View Post
Yes, I use a non-standard kernel because I do not want to use a initramfile. I compile every kernel myself but that cant be the fault because I often use the same kernel in both OS:s
ok, maybe i was off with my suggestion but this just shows how much often goes unsaid in the initial post.
what custom kernel? could it have something ot do with the issue? show us some output.
 
Old 11-11-2017, 05:09 PM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by jarvini View Post
Its utterly irritating because only method to escape the situation is to disconnect the PC from electricity.
long-pressing the power button usually does the same.
 
Old 11-12-2017, 09:35 AM   #10
jarvini
LQ Newbie
 
Registered: May 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ondoho View Post
ok, maybe i was off with my suggestion but this just shows how much often goes unsaid in the initial post.
what custom kernel? could it have something ot do with the issue? show us some output.
The latest kernel I use is from linux-source-4.13.10-1 compiled by me but as I said it can't be this that is causing the problem. What kind of "output" are you thinking about.

jarvini
 
Old 11-12-2017, 11:56 AM   #11
jarvini
LQ Newbie
 
Registered: May 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hazel View Post
Certainly the evdev rules, anything with input in the title and the default rules. I notice that your keyboard uses libinput and Debian has a udev file for that too. And I've noticed an xorg-xkb.rules file. Doing a diff on the /lib/udev/rules.d directories for sid and jessie might be an idea too, since you say jessie works.
I have now compared every rulesfile in the rules.d directory including your suggestions. diff didn't found any differences whatsoever in non of the rulefiles. This is little astonishing Jesse and sid uses exact the same rules?? The other files in the udev directory differ much. Do you have more suggestions?

jarvini
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux PPTP server disconnects wastingtime Linux - Networking 0 05-28-2010 01:07 AM
X-server disconnects after a while josegascon Linux - Server 1 02-24-2010 06:59 PM
X-server disconnects after a while josegascon Linux - Newbie 1 02-23-2010 01:46 PM
Wikipedia on Opera disconnects keyboard and mouse! jtm_tango Linux - Software 0 09-25-2007 07:01 AM
Enemy Territory server disconnects newbe45 Linux - Software 8 08-07-2003 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration