Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
General tutorial on new devices? (Should we write one?)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
teika
Apprentice
Apprentice


Joined: 19 Feb 2011
Posts: 165
Location: YYYY-MM-DD, period. Have you ever used the Internet?

PostPosted: Sat Oct 15, 2011 6:27 am    Post subject: General tutorial on new devices? (Should we write one?) Reply with quote

Hi. Recently I learned two things during my effort to use a new WiFi adapter.

1. "sysfs new_id": Even if the driver doesn't support your device, you can make it work e.g. by:
echo "0411 0158" > /sys/bus/usb/drivers/rt2870/new_id

The general grammar is:
echo "<vendor-id> <product-id>" > /sys/bus/<bus>/drivers/<driver>/new_id

2. sys-kernel/linux-firmware: This is a big collection of firmwares provided by kernel.org.

I didn't know these tricks. Are there any good things to know when you try a new device? (If there turns out to be plenty, I'll contribute to Gentoo Wiki.)


In fact, I've encountered a case where the above "new_id" method doesn't work, and I had to patch the kernel source:
http://en.gentoo-wiki.com/wiki/User_talk:Teika#Older_kernels

Regards
_________________
Hack of easy Shift / Ctrl / AltGr etc; save your pinkies, type without drudgery: topic 865313

BTRFS - Biden & TRump, Fools Suck.


Last edited by teika on Mon Oct 17, 2011 9:17 am; edited 1 time in total
Back to top
View user's profile Send private message
CrankyPenguin
Apprentice
Apprentice


Joined: 19 Jun 2003
Posts: 283

PostPosted: Sun Oct 16, 2011 11:10 pm    Post subject: What kinds of devices? Reply with quote

Generally with a new device the first place I go is lspci or lsusb. These can at least be fodder for good searches online especially by the pci numbers which can be used to search for appropriate drivers online.
_________________
Linux, the OS for the obsessive-compulsive speed freak in all of us.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Oct 16, 2011 11:19 pm    Post subject: Reply with quote

I've had a few cases with missing ID's, I simply edited kernel dirvers (sources) to add them.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum