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:

Code:

samsung-scripts - Utilities for your Samsung netbook

samsung-scripts status - show status for all devicessamsung-scripts bluetooth on|off|status - no params will togglesamsung-scripts cpuperf auto|status - no params will switch to next perf optionsamsung-scripts lcd on|off - no params will togglesamsung-scripts webcam on|off|status - no params will togglesamsung-scripts wifi on|off|status - no params will toggle

Examples of use:To check the current status of bluetooth:

Code:

samsung-scripts bluetooth status

To switch to next CPU governor:

Code:

samsung-scripts cpuperf

To toggle the wifi device:

Code:

samsung-scripts wifi

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.

_________________

Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

Post subject: RE: [NC10] New scripts, updated scripts and a general summary

Posted: 15/03/2009, 15:48

Administrator

Joined: 12/02/2009, 18:08Posts: 1377Location: Italy

Thanks for the polish translation.

I'm considering to create a new package on my repository containing all these scripts, mapping them to some keys combinations... but I don't know what keys combinations to use (others might not like my preferences, so I don't want to force anyone to use them).

I like to use the FN-F3, FN-F7 and FN-F8 keys for launching the applications I mostly use, so I use a 4-keys combination for every script (in order to avoid keybinding conflicts with the software I use... damn eclipse, it already uses all the best key combinations! ):

t -> CPU Temperature
g -> CPU Governors
b -> Bluetooth
w -> Webcam

What do you think about them? Are they good to be the defaults for everyone?

_________________

Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

Post subject: RE: [NC10] New scripts, updated scripts and a general summary

Posted: 15/03/2009, 17:15

Newbie

Joined: 14/03/2009, 21:59Posts: 30

I prefer the gnome applet for cpu governors. This way I have a visual indicator for the current governor.Just do dpgk-reconfigure gnome-applets and allow the cpu frequency scaling applet to run with root privileges.

Post subject: RE: [NC10] New scripts, updated scripts and a general summary

Posted: 15/03/2009, 17:58

Administrator

Joined: 12/02/2009, 18:08Posts: 1377Location: Italy

Well, I'm adding a new package to my repository, nc10-scripts, containing the 'cpuscaling.sh', 'cputemp.sh', 'btonoff.sh' and 'wconoff.sh' scripts. They are mapped globally to the following keybindings:t -> CPU Temperatureg -> CPU Governorsb -> Bluetoothw -> WebcamFurthermore, new rules are automatically added to /etc/sudoers in order to run the scripts that need admin rights.

This package is optional (this is the reason why it's already on the repository), so if you want to use it you have to manually install it with the command

Code:

sudo apt-get install nc10-scripts

Let me know what you think about it!

PS:Scripts are globally mapped in metacity as command_3, command_4, command_5, command_6.If you already have a local configuration in your user home for hotkeys, this has the precedence over the global one.These are the files where local configuration for hotkeys is stored

You have two options: you can delete both files (this will delete all other custom hotkeys too, so you have to reconfigure them), or you can edit both files and delete the sections referring to all the above command_* numbers.

_________________

Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

Post subject: RE: [NC10] New scripts, updated scripts and a general summary

Posted: 17/03/2009, 21:20

Administrator

Joined: 12/02/2009, 18:08Posts: 1377Location: Italy

While updating packages for kernel 2.6.27-14, I was thinking that it would be better to have all scripts in the same package (well, at least for me, for mantaining them ), so I removed 'wlonoff.sh' and 'lcdonoff.sh' scripts respectively from 'linux-backports-modules' and 'gnome-power-manager' packages and putted them into 'nc10-scripts' package.

_________________

Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

Post subject: RE: [NC10] New scripts, updated scripts and a general summary

Posted: 08/04/2009, 12:02

Newbie

Joined: 08/04/2009, 11:53Posts: 2

Hi everyone !
First of all, thanks Voria for all your work !
I just completed an install of Jaunty beta on my NC10, but the scripts don't work.
I added your repository to the sources.list and installed the nc10-scripts package.
All your scripts are in /usr/bin, they do work when I call them with the Terminal but the mapping doesn't seem to work.
I checked in Gconf if the mapping was Ok (it is), I checked the visudo file to see if I had the permissions to run these scripts and it's OK too.

Post subject: RE: [NC10] New scripts, updated scripts and a general summary

Posted: 08/04/2009, 12:49

Administrator

Joined: 12/02/2009, 18:08Posts: 1377Location: Italy

Hi and Welcome :)

In Jaunty you have to enable the 'Commands' plugin in the 'compiz configuration settings manager' in order to activate and use the metacity bindings.You can install the compiz configuration settings manager with the command

Code:

sudo apt-get install compizconfig-settings-manager

and start it through the 'System'-->'Preferences' menu.

_________________

Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum