LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-21-2006, 02:16 AM   #1
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
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.

Thank you in advance.
 
Old 06-23-2006, 06:35 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114
Hi Fogie

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.

Eric
 
Old 06-23-2006, 10:04 PM   #3
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
Hi Eric,

OK I will give that a try and report back, thank you for the reply.

Fogie
 
Old 06-23-2006, 10:34 PM   #4
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
HI Eric,

I got the system beep working

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:

http://64.233.161.104/search?q=cache...s&ct=clnk&cd=1

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.
 
Old 06-23-2006, 11:54 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Maybe you can modify the udev rules for that device to match those perms?


Cheers,
Tink
 
Old 06-27-2006, 11:02 AM   #6
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
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.
 
Old 06-27-2006, 12:56 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Did you look at the udev rules?


Cheers,
Tink
 
Old 06-30-2006, 12:48 PM   #8
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
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.
 
Old 07-04-2006, 12:07 AM   #9
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
Well it appears Pat did not configure KDE correctly and KDE has a how-to for this issue located at:

http://docs.kde.org/stable/en/kdebas...use/index.html

however, that "fix" does not work, and I'm so lost on udev
 
Old 07-04-2006, 01:26 AM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by Old_Fogie
Well it appears Pat did not configure KDE correctly
That's debatable ...

BUT: Slack doesn't have PAM, that's true, hence anything relying on
pam_console will obviously fail to do the trick.


Cheers,
Tink
 
Old 07-08-2006, 02:56 AM   #11
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
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.

http://www.slackware.com/~alien/doku...lackware:fixes

anyone understand how one might translate Eric's work from a scanner to a usb mouse?
 
Old 07-08-2006, 03:42 AM   #12
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
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.

http://lomoco.linux-gamers.net/
 
Old 08-01-2006, 01:49 AM   #13
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
old thread,

but i finally figured out how to get access to usb devices as non-root.

works for my scanner and now i can get 800 dpi w/the mouse

there's no post number but it's from the person 'dignome'

here:
http://qemu.dad-answers.com/viewtopi...4c0534e38b6798
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Keyboard & Mouse doesn't work at all stitch23 Linux - Hardware 4 06-23-2005 03:20 PM
Frustrated Newbie: Mouse doesn't start on boot & can't logon except as root. SuSE 9.3 archiesmiley Linux - Newbie 2 06-09-2005 02:37 PM
Turn of pcspeaker blueprobe Linux - Newbie 11 02-23-2005 02:44 AM
Wireless combo Keyboard&Mouse Delux. Will they work??? buboleck Linux - Hardware 0 04-15-2004 07:32 AM
Mandrake 9.1 install goes fine, but X & mouse don't work. disconeck Linux - Newbie 3 03-30-2003 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:29 AM.

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