Bug 90639 - Enhanced hwsetup with two options added
Bug#: 90639 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: livecd@gentoo.org Reported By: rene.rheaume@videotron.qc.ca
Component: Ebuilds
URL: 
Summary: Enhanced hwsetup with two options added
Keywords:  
Status Whiteboard: 
Opened: 2005-04-27 10:31 0000
Description:   Opened: 2005-04-27 10:31 0000
I made two patches to hwsetup, each one adding one command-line option.

The first one has been around for about one year. It adds a -f (for Fast) option. By using this, PS/2 and serial devices detection is skipped, allowing a very fast execution (0.4 s instead of 15 s on my Athlon XP 2500+!). This would be great for new-world PPC, and legacy-free x86 and amd64 systems as they do not have such antiquated ports.

The second is newer. This time, it adds a -l (for aLsa) option. Instead of loading an OSS module, hwsetup -l will try to load an ALSA module instead. Which one? Simply by prepending "snd-" to the OSS module name. For example: I own a Guillemot Maxi Sound Fortissimo. Its corresponding OSS module is ymfpci. hwsetup -l will try to load snd-ymfpci (the "guessed" ALSA module). If it can't, it will fallback to the "ymfpci" (OSS) driver. Of course, the -l is ignored if -a (no Audio) is also passed to hwsetup. I know, it is a rough guess and I would like to know with which cards this guess does not work.

I also supply an ebuild which pass optimisation flags to emake.

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From René Rhéaume (a.k.a. repzilon, rener) 2005-04-27 10:33:02 0000 -------
Created an attachment (id=57403) [details]
Patch adding the -f (fast probing) option 

------- Comment #2 From René Rhéaume (a.k.a. repzilon, rener) 2005-04-27 10:33:49 0000 -------
Created an attachment (id=57404) [details]
Patch adding the -l (try ALSA) option

------- Comment #3 From René Rhéaume (a.k.a. repzilon, rener) 2005-04-27 10:34:22 0000 -------
Created an attachment (id=57405) [details]
Tweaked ebuild

------- Comment #4 From Chris Gianelloni (RETIRED) 2005-05-31 13:52:27 0000 -------
This looks really interesting...  I'll look into it when I get more time...

------- Comment #5 From Chris Gianelloni (RETIRED) 2005-06-14 09:25:36 0000 -------
Added slightly modifed versions of these patches, so that they worked with the
blacklist patch.