Search found 16 matches

by bobsammers
Wed Sep 25, 2013 4:56 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

No, at least I haven't. It is my intention to find out more about the DRM interface(s) (if you look in the PDF I referenced a couple of posts back, you'll see, if you didn't already know, that the Direct Rendering Manager provides graphics hardware abstraction across all the traditional disparate in...
by bobsammers
Wed Aug 07, 2013 6:16 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

Based on a StackOverflow Question , I tried the following code: #include <sys/types.h> #include <sys/ioctl.h> #include <linux/fb.h> #include <unistd.h> #include <fcntl.h> #include <stdio.h> #include <errno.h> int main() { int fd = -1; int r = 1; fd = open("/dev/fb0", O_RDWR); if (fd >= 0) ...
by bobsammers
Wed Aug 07, 2013 1:26 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

I've learned from looking at x.org source and some of the better-hidden documentation that the video driver is expected to implement a function called ChipDPMSSet() and also to call an x.org api function itself to register DPMS compatibility: xf86DPMSInit() . There's a passage on this in the x.org d...
by bobsammers
Wed Jul 31, 2013 1:17 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

I'm kicking myself now as I go and do a lot of research on this and then don't update this thread, so I apologise if the following is a little vague or incorrect, as it was a few days ago and all I have is the URL's I've been doing this too - don't get a lot of time at the moment for fiddling aroun...
by bobsammers
Thu Jul 25, 2013 10:11 am
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

Fundamentally, as I see it, there is some sort of interface that the screen or some power management system presents, and it should be just a matter of sending that the right commands. I started to dig in this area, but didn't get very far. Presumably the power management interface should be ACPI. ...
by bobsammers
Sun Jul 21, 2013 8:41 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

Slight delay, but I've finally got around to testing the Kubuntu distro on a flash stick and the xset dpms force off command. It does seem to be the case that X11 has some way of turning the screen off completely that is not achieved by the console screen blanking controlled by setterm (certainly us...
by bobsammers
Wed Jul 10, 2013 1:09 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

So I've spent 1/2 an hour this morning looking at the X11 source code... xset dpms force off calls a function in the DPMS.c module of libXext called DPMSForceLevel() . This uses a macro, GetReq() defined in xlibinit.h which appears to create a data structure containing opcodes and relevant parameter...
by bobsammers
Tue Jul 09, 2013 9:06 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

Just an update on vbetool.

After it turned out that setterm could do some things remotely, but not others, I tried vbetool at the console. I get the same results as reported earlier: every command gives "Error: something went wrong performing real mode interrupt"
by bobsammers
Tue Jul 09, 2013 8:58 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

[offtopic] Hi BuZz, I've only belatedly realised (reading through this thread) that you are responsible for the Ubuntu images I'm using. Thank you so much for doing this, it's breathed a new lease of life into a Joggler-in-a-cupboard and meant I can keep my power-hungry Dell tower switched off most ...
by bobsammers
Tue Jul 09, 2013 8:53 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

For some time I thought that some of the other pseudo-files in same directory may affect the backlight. [...] doing the same thing to bl_power as done to brightness, did nothing, as far as I can tell. I'm interested to know what this is for. Hi Juggler, thanks for your ideas. Over the last few days...
by bobsammers
Mon Jul 08, 2013 11:46 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

Thanks very much for your continued assistance, Leonardo. As I understand it, xset only works with an X11 server running. I don't have X installed and (presumably becuase of this) your method isn't working for me (I get unable to open display "localhost:0.0" ). I realise it does provide a ...
by bobsammers
Sat Jul 06, 2013 9:03 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

I confirm, sorry for replying so late, if you want to do a real test with echo, become root for example with: sudo -s then run the echo 5 > brightness if it works you can create a script/wrapper you can call with sudo. Cheers, Leo Thanks for your help Leonardo and BuZz. As you may have gathered, I ...
by bobsammers
Thu Jul 04, 2013 4:23 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

Ah... so you're saying that xset won't work because it needs an X server running? That does makes sense, but I thought I'd seen something that suggested the tools could work standalone. Obviously I misunderstood. I love the irony of installing and running X to power off the screen! Presumably, were ...
by bobsammers
Thu Jul 04, 2013 12:09 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

Just as an addendum: I should have mentioned that the Squeezeplay functionality ilovemyjoggler mentioned writes to the /sys/.../backlight psuedo-file for brightness control (which is now working on my Joggler) but uses xset to actually switch off the backlight (which is not).
by bobsammers
Thu Jul 04, 2013 11:55 am
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Re: Ubuntu backlight control

Thanks very much for your response, ilovemyjoggler. I hadn't seen that and it definitely helped. I followed the patch through into the Squeezeplay installation tarball and realised I was being a bit dim! Bash command output redirection isn't elevated, even if the command itself is run with sudo , so...
by bobsammers
Wed Jul 03, 2013 1:51 pm
Forum: General / Software
Topic: Ubuntu backlight control
Replies: 30
Views: 30354

Ubuntu backlight control

I've been trying to set up my Joggler with an external HD as a GUI-less server, for Squeezebox Server purposes. I've used the Ubuntu Base/Server 12.04 LTS (V1.4 - 09/04/2013) image written to a 750GB external drive and it's working pretty much how I want it. My one problem is the backlight, which (i...