Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load video backend #5

Open
ghost opened this issue Sep 14, 2015 · 18 comments
Open

Unable to load video backend #5

ghost opened this issue Sep 14, 2015 · 18 comments

Comments

@ghost
Copy link

ghost commented Sep 14, 2015

I tried the latest version of this program but when I run it I got this error: '[ERR] Unable to load video backend'

@AnonymousMeerkat
Copy link
Owner

I think this is caused because of the removal of add_definitions("-DOL_CMAKE_USE_X11"), since the code will not build the X11 video backend if it's not defined :)

See if the latest commit fixes it! (as I wrote in the other issue, you might have to run git reset --hard HEAD before running git pull, in order to ensure that there are no file conflicts)

@ghost
Copy link
Author

ghost commented Sep 15, 2015

I tried it, the compilation works with your latest commit and I didn't have the error. But.. my screen is not updated when I run it.
I tried: 'openlux -k 2400 -b 40' and 'openlux -k 10000' even with sudo. I will see if bsbhro get this issue too, now he can run the program.

@AnonymousMeerkat
Copy link
Owner

There was someone else with a similar issue, he was running Kubuntu 15.10. Are you running the same? If not, what version of ubuntu, and what desktop environment are you running?

@ghost
Copy link
Author

ghost commented Sep 15, 2015

I use Ubuntu 15.04 with the Unity Desktop.

@AnonymousMeerkat
Copy link
Owner

I'll download a build of it then, and see if I can replicate the issue :)

@ghost
Copy link
Author

ghost commented Sep 15, 2015

Thank you for your time :)

@AnonymousMeerkat
Copy link
Owner

I downloaded the x86 build of the desktop version of ubuntu 15.04, and it works fine here... Are you using unity 8? (if you don't know, then you're probably using unity 7)

Also, could you run openlux under valgrind, strace, and ltrace, like such:

valgrind -v ./src/openlux
strace ./src/openlux
ltrace ./src/openlux

and then upload what they output to a pastebin? I'm mostly interested in ltrace, but valgrind or strace might have something useful too (tbh, I doubt that valgrind will, but just in case)

@ghost
Copy link
Author

ghost commented Sep 15, 2015

I'm using Unity 7 as my desktop environment. I uploaded what you request:
ltrace: http://pastebin.com/VMmeJ3Ct
strace: http://pastebin.com/cDA66Ugx
valgrind: http://pastebin.com/xCPPCKYn

Did it run on your Ubuntu 15.04?

@AnonymousMeerkat
Copy link
Owner

Everything seems okay (apart from the addresses, basically everything is identical in the results of my computer, and yours)... There aren't any other programs changing the gamma ramp (e.g. redshift, f.lux)?

Just in case, try running openlux -k 0 or openlux -k 99999999 (doesn't matter the exact number of 9's, just put more than 5 =p).

@ghost
Copy link

ghost commented Sep 16, 2015

Hi, Good Morning,
on my notebook with Xubuntu 15.10 the program works like expected (last night i read a book gently to eyes) and you closed issue #4. But on my PC with Ubuntu 15.04 the 'make' worked, and the command call is doing nothing. Is this expected?

@AnonymousMeerkat
Copy link
Owner

Assuming that your case is the same as Tankypon's, what graphics card, and, more importantly, what driver (and driver version) are you using for it? Could you try updating the driver (if possible ... you might have to enable the proposed and backports repositories)?

@ghost
Copy link

ghost commented Sep 16, 2015

I did this. No change. And I installed it on an old notebook with Lubuntu 15.04, i386, where it works.

@AnonymousMeerkat
Copy link
Owner

AnonymousMeerkat commented Sep 16, 2015

I think this has to do with the graphics card driver then. If it's possible, could you try running an ubuntu 15.10 livecd, and see if it works there? (if you're compiling on the livecd, just run sudo apt-get install cmake build-essential libx11-dev libxxf86vm-dev git;git clone https://github.com/AnonymousMeerkat/openlux.git;cd openlux;mkdir build;cd build;cmake ..;make I used that command quite a few times today to test it on various ubuntu builds ... just saves time to copy and paste =p)

Which graphics card are you using? And, if applicable (AMD or NVIDIA), are you using the proprietary or the open-source driver? Both drivers have worked for me on my PC (NVIDIA GTX 660 TI), using 352.09 for the proprietary one, and both the latest versions that come with ubuntu 15.04 and 15.10 of nouveau (the open-source one).

I'm thinking of releasing a software-based video backend for openlux for situations like this... I'll look into the possibility of this tomorrow :)

@ghost
Copy link

ghost commented Sep 16, 2015

It's a "00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09)", but I'm not able to get a driver name and version. No proprietary used on Gnome-Ubuntu-15.04.

On this PC I made it with Xubuntu-15.10-Live-Stick: worked. I made it with Debian 8.2 Xfce: worked. And I made it on a 'fresh' installed Gnome-Ubuntu-15.04: worked. I have a driver problem on my Work-Ubuntu :-) - I'm not a programmer, but I thought since yesterday, 'He is too deep in hardware'. And you think so. Stay tuned.

@ghost
Copy link
Author

ghost commented Sep 17, 2015

@AnonymousMeerkat My graphic card is Nvidia Geforce 740M. I use it with the proprietary drivers Nvidia 355.11 and my processor is Intel i7-4700MQ. When I will have the time I will download a live usb of Ubuntu 15.04 (to test on a fresh system) your program with my GPU

I try with openlux -k 0 or openlux -k 99999999 but I saw nothing. And no I deactivated Redshift before to run your program.

Update:
I just try it on a fresh system on a live usb with Ubuntu 15.04 and no proprietary drivers: it's working :) but I don't know why on my personal system it's not..

@AnonymousMeerkat
Copy link
Owner

Cool!! So this almost certainly has to do with the graphics card driver then.

I'm currently working on a software-based solution (similar in concept to xcompmgr or compton) that will kind of emulate what the graphics card does. It's definitely not ideal, both in terms of performance and the resulting image, but it's better than nothing :)

@rhetr
Copy link

rhetr commented Jul 31, 2017

I just got this error after updating my X11 from 1.18.6 to 1.19.3 in ubuntu 16.04.2 using the intel driver (2.99.917+git20160325 -> 2.99.917+git20170309). I also got another error:

[ERR] 0-bit depths are not supported at this time

for the time being i'll just roll back

@AnonymousMeerkat
Copy link
Owner

After looking a bit into this, it appears Ubuntu disabled Xf86VidMode, which is what openlux requires to change the gamma (see here: https://anonscm.debian.org/cgit/pkg-xorg/xserver/xorg-server.git/tree/debian/rules?id=b0943284842f2ed71a41b5abae2d77fff7c85baf#n152 ).

I'll have to add an xrandr backend soon to fix this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants