HOWTO: NC10 scripts
Posted: 15 Mar 2009, 13:00
Due to the many changes in my scripts done these days, a brief summary is a good thing to do.
You can always download the latest scripts from here.
Scripts have been completely reorganized and standardized, thanks to the work done by Stuart Herbert.
The main script is samsung-scripts and it has to be installed in /usr/bin/.
All the others scripts must be installed in /usr/lib/samsung-scripts/.
If you are a K/Ubuntu user, install the samsung-scripts package from my repository and everything will be set and ready to be used.
You can have a good summary of how the scripts work by launching the command 'samsung-scripts' from a terminal. This is the output:
Examples of use:
To check the current status of bluetooth:
To switch to next CPU governor:
To toggle the wifi device:
Note:
when the script is launched in an interactive session (ie, from a terminal), it prints its output on the standard output (ie, the terminal). When it's launched in a not-interactive session (for instance, from an hotkey), it shows its output in a notification bubble.
If you use the samsung-scripts package from my repository, a new rule is automatically added to sudo in order to run the 'samsung-scripts' script with admin rights with no need to insert the user password.
Also, the following hotkeys are automatically created:
- Fn-F4: launch the command 'switchscreenlayout.sh' - (switch to next screen layout, more informations here).
- Fn-F5: launch the command 'sudo samsung-scripts lcd' - (toggle the lcd brightness).
- Fn-F7: launch the command 'sudo samsung-scripts bluetooth' - (toggle the bluetooth)
- Fn-F8: launch the command 'sudo samsung-scripts cpuperf auto' - (show/switch CPU governors).
- Fn-F9: launch the command 'sudo samsung-scripts wifi' - (toggle the wifi device)
- <Ctrl><Alt><Shift>w: launch the command 'sudo samsung-scripts webcam' - (toggle the webcam)
- <Ctrl><Alt><Shift>m: launch the script 'wmswitcher.sh' - (toggle compiz, only available on Ubuntu)
There is a configuration file, /etc/default/samsung-scripts, for users with a netbook different from NC10, where various options can be configured. Open the file in a text editor and follow the instructions to customize it.
You can always download the latest scripts from here.
Scripts have been completely reorganized and standardized, thanks to the work done by Stuart Herbert.
The main script is samsung-scripts and it has to be installed in /usr/bin/.
All the others scripts must be installed in /usr/lib/samsung-scripts/.
If you are a K/Ubuntu user, install the samsung-scripts package from my repository and everything will be set and ready to be used.
You can have a good summary of how the scripts work by launching the command 'samsung-scripts' from a terminal. This is the output:
Code: Select all
samsung-scripts - Utilities for your Samsung netbook
samsung-scripts status - show status for all devices
samsung-scripts bluetooth on|off|status - no params will toggle
samsung-scripts cpuperf auto|status - no params will switch to next perf option
samsung-scripts lcd on|off - no params will toggle
samsung-scripts webcam on|off|status - no params will toggle
samsung-scripts wifi on|off|status - no params will toggle
To check the current status of bluetooth:
Code: Select all
samsung-scripts bluetooth status
Code: Select all
samsung-scripts cpuperf
Code: Select all
samsung-scripts wifi
when the script is launched in an interactive session (ie, from a terminal), it prints its output on the standard output (ie, the terminal). When it's launched in a not-interactive session (for instance, from an hotkey), it shows its output in a notification bubble.
If you use the samsung-scripts package from my repository, a new rule is automatically added to sudo in order to run the 'samsung-scripts' script with admin rights with no need to insert the user password.
Also, the following hotkeys are automatically created:
- Fn-F4: launch the command 'switchscreenlayout.sh' - (switch to next screen layout, more informations here).
- Fn-F5: launch the command 'sudo samsung-scripts lcd' - (toggle the lcd brightness).
- Fn-F7: launch the command 'sudo samsung-scripts bluetooth' - (toggle the bluetooth)
- Fn-F8: launch the command 'sudo samsung-scripts cpuperf auto' - (show/switch CPU governors).
- Fn-F9: launch the command 'sudo samsung-scripts wifi' - (toggle the wifi device)
- <Ctrl><Alt><Shift>w: launch the command 'sudo samsung-scripts webcam' - (toggle the webcam)
- <Ctrl><Alt><Shift>m: launch the script 'wmswitcher.sh' - (toggle compiz, only available on Ubuntu)
There is a configuration file, /etc/default/samsung-scripts, for users with a netbook different from NC10, where various options can be configured. Open the file in a text editor and follow the instructions to customize it.