LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-29-2007, 08:58 AM   #1
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
"Volumouse" for Windoze - Is there a comparable gizmo for Linux?


I am fussy about the brightness/contrast of my monitor. I dunno, maybe I have sensitive eyes, or whatever.. Anyways, at night, I turn the contrast of my monitor waaaay down, and then during the daytime when I can barely see it with my nighttime setting, I turn it back up again. I use the OSD on the monitor to do this, which means I have to move, and press buttons hehehe.. Seriously though:

I had a cool little thing for Windoze called 'Volumouse' which was chock full of semi-useless mouse/hotkey desktop abilities, but the ONE thing I configured it for, was when my mouse pointer was hovering over the taskbar, I could scroll the screen brightness/contrast up and down instantly using the mouse wheel. Very handy!

Has anyone seen a gadget for Linux that can do the same thing for me, or have an idea how I might implement this functionality myself?

Thanks
 
Old 04-29-2007, 10:02 AM   #2
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
nvidia or ati graphic ? afaik both have sliders for brightness/contrast in their setting tool, which you can call via k-menu/system for example. You needn't get up or do any hard work for that.

If this is still not convienient enough, the command for nvidia to adjust the brightness is for example

nvidia-settings --assign brightness=X

wheras X is to replace by a number, the default is 0. Same for contrast. You could easily make your own-style frontend for this using any of the easy script languages, like python (with pykde/pyqt) or Kommander.
 
Old 04-29-2007, 01:29 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Pykde/Pyqt gizmo to up/down brightness using mouse-wheel

Hmm.. OK, It is indeed an Nvidia card, so I do have the nvidia settings tool. Thanks for the suggestion on using it as a backend for what I'd like to do.
The CONTRAST control on my monitor acts quite differently than the Contrast control on the nvidia-settings thing, but I CAN get satisfactory results using nvidia's BRIGHTNESS control instead.
I'd really like to have a taskbar item, or 'area', where I can scroll the mouse wheel, but if I can't have that, I think I would be happy with a simple toggle-button that when clicked, would toggle the brightness from 0 to 1.

First problem: The 'Brightness' attribute can't be queried using nvidia --query[]
...possible solutions: two click methods (maybe left click for dim, right click for bright) OR use the scroll wheel, where each notch of the wheel would increment/decrement Brightness by .01

Second problem: I have ZERO experience with any forms of python/pykde/pyqt and very minimal Bash experience.
...possible solution: I'm not afraid to learn, so I am going to read some stuff about these languages and see if anything looks like something I can make use of.

Suggestions/tips are very appreciated

NOTE TO MODS: This is looking like a programming thread now; please feel free to move it if you agree.
 
Old 04-29-2007, 01:51 PM   #4
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
How about this

http://freenet-homepage.de/dateigarage/fruit.jpg

You can hover your mouse over the sliders and then change settings with your mousewheel.
 
Old 04-29-2007, 02:01 PM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Jaaa! Das ist guten
I think that gizmo would be precisely the thing but I don't read much German, so.. Is that webpage just a picture, or does that site tell me somewhere how to download it?
What is it, btw? Like a floating dock-window, or is it integrated onto the desktop?
Cool @ the page has 'fruit' in the name just like me!
 
Old 04-29-2007, 02:15 PM   #6
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
uhm, yeah, that webpage is a picture of my desktop, I have named the little script after you because I'm pretty sure that no-one else will ever need it

I have created it with kommander, you can download it here:

http://freenet-homepage.de/dateigarage/gftool.tar.gz

Make sure you have kommander installed in order to run it. For some distributions, kommander is part of the package 'kdewebdev'. You can start it in the system tray with

ksystraycmd --hidden --startonshow --keeprunning kmdr-executor /path/to/gftool.kmdr
 
Old 04-29-2007, 02:21 PM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
LMAO! You are awesome thank you so much
I believe I do have Kommander, and I will check out the code to see just how the heck you whipped that up so fast!!
I'll letcha know how it goes Thanks again.
 
Old 04-29-2007, 02:48 PM   #8
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
OK, it is indeed cool and will do the job just fine I think so now.. Rather than submit a bug report I would like to figure out how to edit the gizmo myself. Kommander-Editor looks WYSIWYG-easy enough, but:

1 - How do I make it affect (interface with) the nvidia-settings tool? Like, where to I put in what command(s) get executed when I use it?
2 - I've set the range from -1 to +1 (this is the range of Brightness allowed) but can't seem to make it step by 0.1 per increment. Is it able to?
2.5 - The cute little icon doesn't appear until I click the tool in the taskbar. Before I click it, it's just a blank white square.
3 - The bug: seems that if I mis-click a slider it goes by itself, up and down, which is cool in itself.. But if I then click the other slider, it all locks up solid, and I hafta kill it with Ksysguard. Suggestions?


Last edited by GrapefruiTgirl; 04-29-2007 at 02:50 PM.
 
Old 04-29-2007, 03:27 PM   #9
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
1. right click on one of the widgets and choose 'show kommander text'. That shows you the code.
2. The sliders use integers, you can't use floats with them. You maybe know that bash variables are typeless, so you basically have to treat them as strings. Floats wouldn't help you anyway, cause nvidia-settings uses ,(comma) instead of .(decimal point).
2.5 yes, don't use the close button to minimize. Click on the tray icon instead, then the grapefruit will stay. However, there is of course some limitation to the tray icon, since there is no way in kommander for that.
3. Can't say anything to that, as I cannot reproduce the bug. Does the mousewheel not work on the sliders ?
 
Old 04-29-2007, 03:38 PM   #10
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hmm, ok first, thanks again for those tips..
1 - Will do.
2 - I now know that bash var's are typeless - I didn't before. You're right, floats using commas doesn't sound fun to implement.
2.5 - OK
3 - Yep, the scroll-wheel does work, perfectly; but if I try to 'drag' a slider for example, and I miss the button, the slider starts to go by itself. If I then go and use the other slider at the same time, it hangs up - lights still on, but no one home

Ok, I will fiddle with it more.. Looks like I might need to keep the values -10 / +10, and write 1 or 2 little bash scripts to maybe grab the values and convert them to something nvidia will like.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Still wanting to "enslave" Windoze cautious Ubuntu 27 08-15-2006 12:46 PM
"windoze" "winblows" "M$" ? ugoff General 25 01-04-2005 09:26 PM
How to go into "standby" (as in Windoze) using RH7.2 NRTJ Linux - Newbie 7 09-29-2002 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration