I set up a hot-key to call a tiny suid program that triggers the rescan. Works
great.
Put the following in rescan.c:
#include <stdio.h>
main(){
FILE *outfile;
outfile=fopen("/sys/bus/pci/rescan","w");
if (outfile != NULL){
fprintf(outfile,"1\n");
fclose(outfile);
}
else printf("permission denied\n");
}
then compile with:
gcc rescan.c -o rescan
sudo cp rescan /usr/local/bin
sudo chown root /usr/local/bin/rescan
sudo chmod u+s /usr/local/bin/rescan
then in system->preferences->keyboard shortcuts, create a custom
keybinding (Add). The command should point to /usr/local/bin/rescan,
and set whatever key combination you like - I used the gears button on
the top left of the keyboard, which produces 'super-L'
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/703180
Title:
SD card reader doesn't work on new Dell XPS
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/703180/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs