![]() |
Getting more options with gconf
Tired of the screen blanking while you're using your bluetooth keyboard? The new bluetooth keyboard plugin includes code that helps, but there is another solution, less obvious to those not familiar with gnome. The solution uses gconf, which is analogous in many ways to the Windows Registry.
Code:
gconftool-2 --type "list" --list-type "int" --set "/system/osso/dsm/display/possible_display_dim_timeouts" "[10,30,60,120,300,3600]" So now you can select longer timeout periods, if you want more time with your keyboard. If you connect your keyboard via an xterm (e.g. with kbdd), you may want to consider creating a shell script to both connect your keyboard and, using gconftool-2, automatically modify the brightness and/or blank timeouts: Code:
gconftool-2 --type "int" --set "/system/osso/dsm/display/display_dim_timeout" 600 The screen timeout example is only halfway useful, but it does demonstrate some of the gconf capabilities that are available to users, capabilities that are not given a graphical interface in hildon. For all the possible gconf keys and values, check out the /etc/gconf/gconf.xml.defaults directory, which is a hierarchy of the default gconf values (including defaults for the display dim and blank keys above). Your current gconf values are stored in /var/lib/gconf, but don't try editing them directly - use gconftool-2. |
Excellent! Nobody's commented on this yet? Bah!
Is there a single config file that all of these settings are contained in? What else can be modified? |
Quote:
Hedgecore: Although it seems like a very useful post, just hitting the above made me shout, "HOW?!!?" You wzds presume waaaay too much knowledge. |
If this is truly like the dreaded Windows registry, then it's an endless source of opportunities to brick our 770s... Much fun, thanks a lot :-)
|
Quote:
If my words are Greek to you, then you should not, repeat not, attempt to touch gconf. Better stay away from the gainroot command, too... |
Do you know if the opera zoom levels are in gconf?
grep - a "filter" for example: ps -a | grep -i user (list all process status' and send the output (| is a "pipe". windows uses them also) to grep which is told to ignore case differences (-i) and only show output lines that contain "user" cat = type like: type c:\autoexec.bat (list the file on the screen) cd = cd change current directory (whatd'ya know, windows stole the command from unix !!!) if you want to go "up" a directory, you will have to put a space between cd and the .. cd .. more = more (see cd... windows stole the command from linux) ls -a | more list all files in the current directory and pipe the output to more so you will get one screen at a time. BTW: ls = dir EXCEPT you usually want to ls -a so you can see files and directories that are "hidden" (which is usually the ones that start with a . (dot)) try: ls -a | sort just like dir | sort, this will show the contents of the current directory alphabetically (except dir | sort shows the date and time first, so you get you dir in date order.... not really usefull..) ls -a | sort | more sort the output before showing you a page at a time... so what's the current directory? pwd will tell you. just remember big and little (or as New Yorkers have them: upper and lower case) ALWAYS make a difference in linux. Perhaps the biggest omission on the 770 is built-in-help is not included for commands: in a "normal" linux command-box (shell) you can type man cat to get a concise explanation of the command: page-up/down to see it all and then press q to quit... and if you forget how to use man, you can type man man P |
Yeah, I think the man pages would have used a signifiant chunk of the flash, hence the omission. In typical Nokia 770 fashion, though, you can usually google for "man <command>" and easily find an online version of the man page.
|
Quote:
http://www.google.com/linux allows you to seach for linux specific definitions/questions... |
This is a little old, but the display timeout is in /etc/gconf/gconf.xml.defaults/system/osso/dsm/display/%gconf.xml (there's a whole world of fun in that /etc/gconf directory - I copied it all to my mmc to browse on my comp.)
Also, if you set one of the options to 0 (zero) the display never times out. I only set my dimming value to 0 and it still doesn't go off. It DOES, however, switch the screen off when the cover is put over the screen. PS. I think you can get gconf editors for all sorts of platforms. Google and see! |
Thanks gnuite. Works fine.
I can now set my timeouts to 60 Min when using my USB keyboard. Now I am thinking about how to detect me connecting my USB keyboard and changing the settings automatically. I can grep in /proc/bus/usb/devices to check if the keyboard is there, but with no cron, I can't do this periodically. That seems kinda awkward anyway. hotplug may be able to help, but we don't have that either. Any ideas? |
Re: Getting more options with gconf
dbus and dbus-scripts might be what you're looking for. I'm no expert, but I just used dbus-scripts to run nfs and mount a couple of directories when I connect to my home LAN. I imagine the same could be done for a keyboard connecting.
|
Re: Getting more options with gconf
another method to unblank the screen is described here
|
All times are GMT. The time now is 17:40. |
vBulletin® Version 3.8.8