LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-21-2022, 10:48 AM   #1
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
Keyboard and mouse doesn't work in LFS 11.2


I have updated my system from LFS 11.1 to 11.2, and now keyboard and mouse doesn't work after starting X. Keyboard works in console. I had the same problem in 11.1 when I tried libevdev 1.13.0 and then I solved it by recompiling it with libevdev 1.12.0.
I tried updating xorg-server and libevdev in LFS 11.1 and recompiling the other xorg drivers, and get the same problem. I also tried to update only xorg-server, and recompile the old version of the other drivers, and still got the same problem.
So something must have changed, both in libevdev and xorg-server?

I'm stuck...


The most interesting part from Xorg.log:

Code:
21.631] (II) Module evdev: vendor="X.Org Foundation"
[    21.631]     compiled for 1.21.1.4, module version = 2.10.6
[    21.631]     Module class: X.Org XInput Driver
[    21.631]     ABI class: X.Org XInput driver, version 24.4
[    21.631] (II) Using input driver 'evdev' for 'Power Button'
[    21.631] (**) Power Button: always reports core events
[    21.631] (**) evdev: Power Button: Device: "/dev/input/event1"
[    21.631] (EE) evdev: Power Button: Unable to open evdev device "/dev/input/event1" (Permission denied).
[    21.631] (EE) PreInit returned 2 for "Power Button"
[    21.631] (II) UnloadModule: "evdev"
I don't get permission denied in LFS 11.1.
I've googled, and the only thing I could find was from 2010, to add the user to the group input. I really dont think that's the right thing to do now...
 
Old 09-21-2022, 04:12 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Why evdev? It was yesterday, today we use libinput. Perhaps they dropped support for libevdev. Legacy drivers still should work for keyboard and mouse.
 
Old 09-22-2022, 11:05 AM   #3
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Original Poster
Rep: Reputation: 85
I tried input, but get the same "permission denied".

Code:
317.979] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[   317.979] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[   317.979] (**) Power Button: Applying InputClass "XKB Defaults"
[   317.979] (II) LoadModule: "libinput"
[   317.979] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[   317.981] (II) Module libinput: vendor="X.Org Foundation"
[   317.981] 	compiled for 1.21.1.4, module version = 1.2.1
[   317.981] 	Module class: X.Org XInput Driver
[   317.981] 	ABI class: X.Org XInput driver, version 24.4
[   317.981] (II) Using input driver 'libinput' for 'Power Button'
[   317.981] (**) Power Button: always reports core events
[   317.981] (**) Option "Device" "/dev/input/event1"
[   317.988] (EE) xf86OpenSerial: Cannot open device /dev/input/event1
	Permission denied.
[   317.988] (II) event1: opening input device '/dev/input/event1' failed (Permission denied).
[   317.988] (II) event1  - failed to create input device '/dev/input/event1'.
[   317.988] (EE) libinput: Power Button: Failed to create a device for /dev/input/event1
[   317.988] (EE) PreInit returned 2 for "Power Button"
[   317.988] (II) UnloadModule: "libinput"
I get the same permission denied for all input devices.
 
Old 09-22-2022, 11:10 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Who owns these input nodes? Add your user to this group.

Edit: just did 'ls -l' on mine, the group is surprisingly called 'input'.

Last edited by Emerson; 09-22-2022 at 11:12 AM.
 
Old 09-22-2022, 12:21 PM   #5
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Original Poster
Rep: Reputation: 85
I did, and it worked... But I wonder if this really is the right solution. It feels so 2010... Isn't it a security risk? I didn't need to be in group input in 11.1, so I find it strange that I need it in 11.2. Or have they made polkit required as the only alternative to be in group input for this version of xorg? I don't want polkit.
 
Old 09-22-2022, 12:39 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
These are input devices and you did have the rights to use them before. Therefore I do not see how it could be an increased security risk. 2010? UNIX security is much older than that. I don't think fancy layers between user and kernel are necessarily security improvements.
 
Old 09-22-2022, 12:53 PM   #7
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Original Poster
Rep: Reputation: 85
Ok, thanks.
 
  


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
[SOLVED] LFS-8.0 keyboard and mouse do not work joakim12 Linux From Scratch 12 07-11-2017 11:09 PM
hp wireless keyboard & mouse, keyboard works, mouse do not work not working john hughes Linux - Desktop 2 04-04-2016 11:00 AM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
Keyboard doesn't work right click on mouse doesn't work ramblinrick Linux Mint 2 10-15-2010 01:10 AM
Bluetooth mouse and keyboard connect, mouse doesn't work BallsOfSteel Linux - Hardware 2 05-25-2008 01:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:13 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