User Tools

Site Tools


docs:tips_n_tricks:linux_system

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
docs:tips_n_tricks:linux_system [15.07.2012 18:31 CEST]
peter
docs:tips_n_tricks:linux_system [27.02.2015 04:14 CET] (current)
peter [Force hard reset]
Line 42: Line 42:
  
 __Credits__ and further reading: [[http://​www.linux-geex.com/?​p=259|GEEX]],​ [[http://​www.heise.de/​ct/​hotline/​Gewaltsamer-Reset-unter-Linux-321064.html| ct' online]], [[http://​kernel.org/​doc/​Documentation/​sysrq.txt|kernel.org]] __Credits__ and further reading: [[http://​www.linux-geex.com/?​p=259|GEEX]],​ [[http://​www.heise.de/​ct/​hotline/​Gewaltsamer-Reset-unter-Linux-321064.html| ct' online]], [[http://​kernel.org/​doc/​Documentation/​sysrq.txt|kernel.org]]
 +===== Reset USB device (bus?) =====
 +
 +Regain access to an build-in card reader after
 +  udisksctl power-off -b /dev/sdc
 +
 +__''/​var/​log/​syslog''​__
 +  Feb 26 16:38:27 myhost udisksd[6074]:​ Ignoring SCSI command START STOP UNIT failure (Non-GOOD SCSI status from SGIO v3 ioctl: status=2 host_status=0 driver_status=8) on /dev/sdc
 +  Feb 26 16:38:27 myhost udisksd[6074]:​ Powered off /dev/sdc - successfully wrote to sysfs path /​sys/​devices/​pci0000:​00/​0000:​00:​1d.7/​usb2/​2-4/​remove
 +  Feb 26 16:38:27 myhost kernel: [179303.432273] usb 2-4: USB disconnect, device number 8
 +  Feb 26 16:38:27 myhost colord: device removed: sysfs-HP-HP_Flash_Media_Reader
 +  Feb 26 16:38:28 myhost colord-sane:​ io/​hpmud/​pp.c 627: unable to read device-id ret=-1
 +
 +succeeded with:
 +
 +  echo 0 > /​sys/​bus/​usb/​drivers/​usb/​usb2/​authorized
 +  echo 1 > /​sys/​bus/​usb/​drivers/​usb/​usb2/​authorized
 +
 +__Credits__:​ [[http://​askubuntu.com/​a/​61165|How do you reset a USB Device from the command line? - Ask Ubuntu]]
 +
 {{entry>​0/​Linux|-}} {{entry>​0/​Linux|-}}
 {{tag>​Linux}} {{tag>​Linux}}
 +
docs/tips_n_tricks/linux_system.txt · Last modified: 27.02.2015 04:14 CET by peter