Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
auto turn off usb mouse [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
karafeka
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2004
Posts: 89

PostPosted: Sun Aug 05, 2007 9:32 am    Post subject: auto turn off usb mouse [SOLVED] Reply with quote

Hello

Is it possible to automatically turn off usb mouse (especially turn off red light), when not using computer for a long period (for example, over night)?

How to do this manually?


Last edited by karafeka on Thu Aug 09, 2007 9:39 am; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Aug 05, 2007 1:24 pm    Post subject: Reply with quote

Disconnect the mouse by unplugging it.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
bltngshp
n00b
n00b


Joined: 20 Jan 2005
Posts: 54

PostPosted: Sun Aug 05, 2007 3:23 pm    Post subject: Reply with quote

nixnut wrote:
Disconnect the mouse by unplugging it.
zing!

But seriously short of that, from http://www.gentoo.org/doc/en/power-management-guide.xml:
Quote:
The kernel offers an experimental option to enable suspension of USB devices through driver calls or one of the power/state files in /sys.
Code:
Device Drivers
  USB support
    [*]   Support for Host-side USB
      [*]   USB suspend/resume (EXPERIMENTAL)

Hopefully this gives you a place to start.
Back to top
View user's profile Send private message
karafeka
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2004
Posts: 89

PostPosted: Thu Aug 09, 2007 9:38 am    Post subject: Reply with quote

If anybody else is interested, how to turn off usb mouse, then try this:

go to
/sys/bus/usb/drivers/usb

execute

$ echo -n 1-1 >bind

to turn off mouse (1-1 is number of usb device (in my case)).

to turn it back on:
$ echo -n 1-1 >unbind
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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