View previous topic :: View next topic |
Author |
Message |
fpemud Guru
Joined: 15 Feb 2012 Posts: 349
|
Posted: Mon Mar 11, 2013 2:20 am Post subject: Any app or applet can easily power off specified device? |
|
|
I want to power off or suspend some device on my computer in some scenarios.
I can do this by writing values to sysfs files manually, but its very inconvenient.
Writing a script is better, but it's vulnerable to hardware change.
Is there some app or applet that auto detects hardware devices and show me a list, then I can power them off by simple mouse click? |
|
Back to top |
|
|
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Wed Mar 13, 2013 3:00 am Post subject: |
|
|
Not ready made, at least not that I know of.
But, you could write a script using things like lspci, lsusb or whatever you require for your hardware to be identified. On top of that, you can add a simple GUI using tools like f.e. zenity (gtk) or kdialog (qt) or whatever you see fit for your environment.
Depending on how complex you want/need the UI to be, 5-20 lines of simple bash should suffice, plus whatever you need to identify the hardware. _________________ ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>. |
|
Back to top |
|
|
|
|
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
|
|