LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 03-16-2013, 12:02 AM   #1
andy713
LQ Newbie
 
Registered: Sep 2009
Location: Louisiana
Distribution: Slackware64-14
Posts: 23

Rep: Reputation: 0
Autoloading sg module


I have a firewire scanner which worked fine until I upgraded to -current this morning. Now I have to load the sg module manually to get it to work. Loading it in initrd or rc.local are brute force ways to fix it, but I'm sure there's a right way out there somewhere. My scanner is still in 80-libsane.rules, but something else appears to have changed. Maybe too aggressive a fix to udev?

Andy
 
Old 03-16-2013, 03:10 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,336

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
perhaps adding usb-storage in your /etc/rc.d/rc.modules fix this problem?
those modules are now modular and no longer built into the kernel
 
Old 03-16-2013, 02:04 PM   #3
ljb643
Member
 
Registered: Nov 2003
Posts: 253

Rep: Reputation: Disabled
When I upgraded to Slackware 14.0, I had to uncomment the line in /etc/rc.d/rc.modules that loads the "sg" module. This was needed to use an ordinary SATA or IDE CD writer. I think the older (Slackware 13.37 and earlier) 2.6.x kernels loaded sg when loading the scsi module, and the newer 3.2.x kernels do not do this automatically.

I don't know if there is a "better" (cleaner, preferred) way to get this to load at every boot.
 
Old 03-16-2013, 06:33 PM   #4
andy713
LQ Newbie
 
Registered: Sep 2009
Location: Louisiana
Distribution: Slackware64-14
Posts: 23

Original Poster
Rep: Reputation: 0
{Kinda SOLVED] Autoloading sg module

I found this udev modprobe sg rule and decided to add it to 80-libsane.rules right before the libsane_scsi_rules_end LABEL near the end of the file:

SUBSYSTEM=="scsi_device", ACTION=="add", RUN+="/sbin/modprobe sg"
LABEL="libsane_scsi_rules_end"

A few quick commands:

udevadm control --reload-rules
rmmod sg

Cycle power on the scanner and now it works. Module sg gets loaded automagically. I like this fix better than loading it somewhere in the boot process. Maybe it should get pushed up into the tree? Or am I the corner case?

Andy
 
Old 04-02-2013, 08:50 PM   #5
andy713
LQ Newbie
 
Registered: Sep 2009
Location: Louisiana
Distribution: Slackware64-14
Posts: 23

Original Poster
Rep: Reputation: 0
{not solved]

So, I thought I fixed it by patching 80-libsane.rules. Turns out that I only get the proper permissions on the sg device (660, root.lp) after the system has booted. During boot, it detects the scanner, but I get '600 / root.root' permissions instead, rendering it useless. So I added --debug to rc.udev to trace it. That made it work fine. So I took off the --debug, and now it doesn't work again. WTF?! SG only works when loaded manually after boot?

Goddammit, I'd piss on a spark plug if I thought it'd do any good! --Gen. Beringer, Wargames

Andy
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Blacklist kernel module (stop autoloading) ? Vilius Debian 4 08-30-2010 12:31 AM
[SOLVED] Kernel module autoloading for configuration crosstalk Linux - Kernel 2 07-15-2010 10:00 AM
Autoloading module at boot artificialGekko Slackware 3 03-26-2005 05:05 AM
Autoloading a kernel module ernesto_cgf Linux - Software 2 09-01-2004 07:52 PM
Autoloading modules Rotten Deadite Linux - Newbie 3 03-25-2002 05:19 PM


All times are GMT -5. The time now is 05:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration