PCSpeaker & Mouse - module work completely for root only
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
PCSpeaker & Mouse - module work completely for root only
Hi all,
I compile pcspeaker as module in my kernel config.
In KDE when you can choose use system beep which makes the audio come out the pc speaker it works only for root. Not other users of the same pc.
The root can log out, the other user log in and it dont work.
Can a module be owned by root. I have to 'modprobe pcspkr' in /etc/rc.modules at boot up for it.
This is not critical I know, but the reason that I'm asking this is in case I need to ever do this for a different module I would just like to learn how you, well I guess 'chown' it?
This also applies to me with a logitech mx310. KDE says 'libusb' is found but KDE cannot access it because of permissions. Which 'libusb' would that be? I guess I have to learn to fix that one too for normal users.
The mouse does work for normal user accounts, however the normal users cannot check off use 800 dpi vs 400 dpi. Again, not a big deal, but I need to learn how to give access to modules.
A kernel module is not 'owned' by any user. It is loaded by the kernel and then offers the required functionality to the system (like, support for a piece of hardware). The access to the hardware usually takes place through a device file (/dev/mouse or the likes) and this is where user permissions come into play. The access and ownership attributes of the device file determine whether you as ordinary user can access or use certain hardware.
For instance, to be able to use most of your computer's hardware, you should add your user at least to the groups sys,disk,floppy,cdrom,scanner. This is the desired way of doing things, and is better than go out editing the permissions of device files to 777.
Apparently this mouse issue is a combination of the way pat properly the linux way loads usb support at 600 and not 666 which is what kde wants has a mention about this at:
maybe the next kde has this guys code in it and my problem will be solved in next slackware, as slax even lets normal users do 800 dpi.
if i log in as root/kdesu then change to 800 dpi my users get 800 dpi until next reboot. oh well, i just su then for now, slack 11 soon w/newer kde probably has me covered.
on my test partition, with default slack 10.2 load .. I removed all KDE and then installed the very latest KDE slackware packages that KDE has on their web-site and no luck. Still can't change the dpi settings of the mouse if non-root. And I can do it on SuSE and even vector.
I've been muscling my way trying to read up on udev. Quite simply I'm having a hard time comprehending it. I've only spent an hour reading on it tho. I need to spend some more time on it.
I wonder if I need to do something like Eric has on his wiki for my hotplug? That was what they were kind of talking about in the KDE section that the issue is hotplug related.
this program works , takes care of a logitech mouse, tho I have no idea what people with other high dpi mice from other manufacturer's would do in slackware tho.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.