Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: Hampelmann91 on June 16, 2016, 03:43:19 AM

Title: Video driver problem
Post by: Hampelmann91 on June 16, 2016, 03:43:19 AM
Hello, I've installed TC Linux on Thin Client (HP T5630W).
When I change my graphics resolution to 1280x768 everything is fine.
But when I change my graphics resolution to 1440x900 and I know my hardware supports as ubuntu worked with the resolution, screen is bigger than monitor.

Is there a way to fix this problem?
Title: Re: Video driver problem
Post by: Hampelmann91 on June 16, 2016, 03:59:19 AM
Hello,
If I use dvi instead of vga cable it works with tiny core linux too.
Title: Re: Video driver problem
Post by: Juanito on June 16, 2016, 05:43:14 AM
Are you using Xvesa, Xfbdev or Xorg-7.7?
Title: Re: Video driver problem
Post by: Hampelmann91 on June 16, 2016, 07:18:12 AM
Hello Juanito,

I use standard ( Xvesa, isn't is?).
Title: Re: Video driver problem
Post by: Juanito on June 16, 2016, 07:25:00 AM
You can use Xorg-7.7 together with the xf86-video-* driver for your hardware, which will usually give the native resolution for your graphics hardware/display without configuration.

Of course this will take up more space/use more ram...
Title: Re: Video driver problem
Post by: Hampelmann91 on June 17, 2016, 12:56:31 AM
Hello Juanito,
my hardware is "VIA Chrome9 HC3" and I installed xf86-video-openchrome.tcz.
Is there anything else I have to do?
Title: Re: Video driver problem
Post by: Juanito on June 17, 2016, 06:51:10 AM
load Xorg-7.7 and restart the gui - you can look at /var/log/Xorg.0.log to check if everything is working OK
Title: Re: Video driver problem
Post by: pq5190362 on June 18, 2016, 04:47:52 AM
I installed xf86-video-openchrome.tcz

Then you are using an old version of Tiny Core Linux.

The last release of Tiny Core Linux which did have xf86-video-openchrome.tcz was Tiny Core Linux 6.x.

And Tiny Core Linux 6.x has a very old version of xf86-video-openchrome (0.3.3), see:

http://tinycorelinux.net/6.x/x86/tcz/xf86-video-openchrome.tcz.info

The latest version however is 0.4.188, see:

https://cgit.freedesktop.org/openchrome/xf86-video-openchrome/

You should probaby update to Tiny Core Linux 7.x and ask Juanito to add the latest version of xf86-video-openchrome (0.4.188 at the time of writing this) to the Tiny Core Linux 7.x repo:

https://bugs.freedesktop.org/show_bug.cgi?id=95059

 ;)
Title: Re: Video driver problem
Post by: curaga on June 18, 2016, 10:30:02 AM
You should probaby update to Tiny Core Linux 7.x and ask Juanito to add build and submit the latest version of xf86-video-openchrome (0.4.188 at the time of writing this) to the Tiny Core Linux 7.x repo

FTFY ;)
Title: Re: Video driver problem
Post by: Hampelmann91 on June 20, 2016, 12:51:11 AM
Hello,
@pq5190362
After I got video problems first time I tried out older version and forgot change back to version 7.x, sorry.  ???

@Juanito
Thank you for yout help!  :)
Can you please tell me how to restart gui?
I installed Xorg-7.7. After reboot I see Tiny Core starting but get a blinking cursor then. 
Title: Re: Video driver problem
Post by: Juanito on June 20, 2016, 01:07:44 AM
To restart X, use the exit gui applet and chose "exit to prompt" and then at the prompt type"startx".

Note that the Xorg-7.7 extension from tc-7.x will not work with the xf86-video-openchrome extension from tc-6.x since the xorg-server abi has changed from 1.17.x to 1.18.x
Title: Re: Video driver problem
Post by: Hampelmann91 on June 20, 2016, 01:48:16 AM
Hello Juanito
where can I find "exit gui applet"?
Title: Re: Video driver problem
Post by: Juanito on June 20, 2016, 01:57:45 AM
If you move the mouse pointer over the icons in the wbar tray at the bottom of the screen, the one of the left will be labelled "exit".
Title: Re: Video driver problem
Post by: Hampelmann91 on June 20, 2016, 04:51:19 AM
Hello,
I installed TC7.1 to hard disk.
Then i installed Xorg-7.7.tcz.
After that I exit to prompt (thank you, now I know where it is  :) ).
Finally I type "startx" but I get a blinking cursor then.
After reboot the blinking cursor comes up again.
Title: Re: Video driver problem
Post by: Juanito on June 20, 2016, 06:59:59 AM
I updated xf86-video-openchrome for tc-7.x

You need to update it using the apps gui, reboot and load both Xorg-7.7 and xf86-video-open-chrome
Title: Re: Video driver problem
Post by: Hampelmann91 on June 21, 2016, 02:57:40 AM
Hello,
I set up a new system 7.1 and installed Xorg-7.7 and xf86-video-open-chrome.
But on startx I get a black screen.
Title: Re: Video driver problem
Post by: Juanito on June 21, 2016, 03:52:01 AM
Use ctrl-alt-backspace or alt-f1 to exit X and look at /var/log/Xorg.0.log for error messages
Title: Re: Video driver problem
Post by: Hampelmann91 on June 21, 2016, 04:46:55 AM
Hello,
I got 6 errors.
Is there a way to prevent errors?

[    24.060] (EE) Failed to load module "fbdev" (module does not exist, 0)
...
[    24.070] (EE) open /dev/dri/card0: No such file or directory
...
[    24.217] (EE) CHROME(0): [drm] Failed to open DRM device for pci:0000:00:01.0: No such file or directory
...
[    24.501] (EE) AIGLX: reverting to software rendering
[    24.502] (EE) AIGLX error: dlopen of /usr/local/lib/dri/swrast_dri.so failed (/usr/local/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[    24.502] (EE) GLX: could not load software renderer

( I put Xorg.0.log in attatchment)
Title: Re: Video driver problem
Post by: Juanito on June 21, 2016, 05:16:42 AM
It looks like you might be missing some dependency extensions.

I believe you originally started with tc-6.x - when you updated to tc-7.x, did you update Xorg-7.7 and all of it's deps using the apps gui?

The reason I ask is that many of the libX* extensions, libdrm, etc were updated from tc-6.x -> tc-7.x

Edit: Note that perhaps your driver requires Xorg-7.7-3d?
Title: Re: Video driver problem
Post by: curaga on June 21, 2016, 06:44:44 AM
The log says there's nothing connected on VGA, but no mention of DVI. Perhaps the driver does not support DVI, or needs a config option.
Title: Re: Video driver problem
Post by: pq5190362 on June 21, 2016, 07:58:49 AM
I updated xf86-video-openchrome for tc-7.x

You have updated to an old version. According to the info file, you have updated to version 0.4.0:

http://tinycorelinux.net/7.x/x86/tcz/xf86-video-openchrome.tcz.info

0.4.0 is old. The latest version (at the time of writing this) is 0.4.901, see:

https://cgit.freedesktop.org/openchrome/xf86-video-openchrome/log/?showmsg=1

The log says there's nothing connected on VGA, but no mention of DVI. Perhaps the driver does not support DVI, or needs a config option.

In post #7 (http://forum.tinycorelinux.net/index.php/topic,20065.msg124821.html#msg124821), I've already pointed you to a bug report which is about DVI issues on HP thin clients when using xf86-video-openchrome, see:

https://bugs.freedesktop.org/show_bug.cgi?id=95059

As you can see from the latest post over there from Kevin Brace, who is the xf86-video-openchrome maintainer, the DVI issues were fixed for some HP thin clients with xf86-video-openchrome 0.4.181 and later.

So, I don't know why Juanito posted the old version 0.4.0 to the Tiny Core Linux 7.x repo.

Maybe if Juanito would update to the latest version 0.4.901, the DVI issues would be solved.

As you can see from the git log and the comments on the bug report mentioned above, Kevin Brace is currently busy at improving xf86-video-openchrome, with almost daily commits, so it would probably be best if Juanito would update to the latest version.
Title: Re: Video driver problem
Post by: Juanito on June 21, 2016, 08:18:02 AM
You have updated to an old version. According to the info file, you have updated to version 0.4.0:
I updated to the latest version in the Xorg repo

Quote
Maybe if Juanito would update to the latest version 0.4.901, the DVI issues would be solved.

..or you could submit an update 😉
Title: Re: Video driver problem
Post by: pq5190362 on June 21, 2016, 08:39:17 AM
I updated to the latest version in the Xorg repo

You mean this one:

https://cgit.freedesktop.org/xorg/driver/

?

I do not even see xf86-video-openchrome being listed there...

Anyway, yes, 0.4.0 is the latest "release" version.

But there have been a lot of fixes since then and the latest version as of writing this is 0.4.901:

https://cgit.freedesktop.org/openchrome/xf86-video-openchrome/log/?showmsg=1

And, I mean, for xf86-video-intel, you had also updated to a fresh git snapshot, see:

http://tinycorelinux.net/7.x/x86/tcz/xf86-video-intel.tcz.info

So, I don't see why you couldn't do this for xf86-video-openchrome as well...

or you could submit an update

No, at this point in time, I do not know how to do this and I do not even have a VIA GPU.
Title: Re: Video driver problem
Post by: Juanito on June 21, 2016, 11:55:11 PM
As per:
Quote
Version bumped to 0.4.901
This version is Version 0.5 RC2 (Release Candidate 2). If there
are no major regressions from Version 0.3.3 or 0.4.0, this version
will be released as Version 0.5 shortly.

..maybe it's better to wait a day or two for 0.5?
Title: Re: Video driver problem
Post by: Hampelmann91 on June 22, 2016, 01:51:44 AM
Hello,
interesting discussion and important news for me.
Quote
The log says there's nothing connected on VGA, but no mention of DVI
Yes, I had DVI connected on my last test, that was it, it works now. :) :) :) THANK YOU!!!
In this case I got another question.
I use  "opt/bootlocal.sh" for loading keymap:
Code: [Select]
loadkmap < /usr/share/kmap/qwertz/de-latin1-nodeadkeys.kmapBut if I install Xorg-7.7 and xf86-video-open-chrome it seems that opt/bootlocal.sh will be disabled.
Is there a way to enable it again?

Title: Re: Video driver problem
Post by: Misalf on June 22, 2016, 01:55:38 AM
You need to create a .conf file for your keyboard layout.

F.e. /usr/local/share/X11/xorg.conf.d/keyboard.conf:
Code: [Select]
Section "InputClass"
Identifier       "Keyboard Defaults"
MatchIsKeyboard  "on"
        Option           "xkb_model" "pc105"
Option           "XkbLayout"   "de"
Option           "XkbOptions"  "terminate:ctrl_alt_bksp"
EndSection

Title: Re: Video driver problem
Post by: patrikg on June 22, 2016, 02:07:26 AM
I use this to enable swidish keyboard.

Code: (bash) [Select]
sudo su
mkdir -p /etc/X11/xorg.conf.d/
echo -e "Section \"InputClass\"" > /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "\tIdentifier \"keyboard defaults\"" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "\tMatchIsKeyboard \"on\"" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "\tOption \"XkbModel\" \"pc105\"" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "\tOption \"XkbLayout\" \"se\"" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "\tOption \"XkbVariant\" \"nodeadkeys\"" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "\tOption \"XkbOptions\" \"terminate:ctrl_alt_bksp\"" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "EndSection" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "etc/X11/xorg.conf.d/se_keyboard.conf" >> /opt/.filetool.lst
filetool.sh -b -v
Title: Re: Video driver problem
Post by: Hampelmann91 on June 22, 2016, 03:33:51 AM
Thank you, it works :)

Is there an other way for startup scripts too?
My startup script in /home/tc/.X.d/ won't work after installing Xorg.
Title: Re: Video driver problem
Post by: Juanito on June 22, 2016, 03:51:09 AM
startup scripts belong in bootlocal.sh or bootsync.sh

scripts in ~/X.d are for things that require X to be started, for example flit or conky
Title: Re: Video driver problem
Post by: Hampelmann91 on June 22, 2016, 04:11:38 AM
Hello,
yes it starts rdesktop.
I installed system again an every thing works well now.
It must have been my mistake.

So my problem is solved and I have to say THANK YOU! :D
Title: Re: Video driver problem
Post by: pq5190362 on June 22, 2016, 06:42:43 AM
As per:
Quote
Version bumped to 0.4.901
This version is Version 0.5 RC2 (Release Candidate 2). If there
are no major regressions from Version 0.3.3 or 0.4.0, this version
will be released as Version 0.5 shortly.

..maybe it's better to wait a day or two for 0.5?

Yes, might be a good idea.

I installed system again an every thing works well now.

But you are using VGA now and DVI still does not work, right?
Title: Re: Video driver problem
Post by: Hampelmann91 on June 22, 2016, 11:54:40 PM
Quote
But you are using VGA now and DVI still does not work, right?
Yes, that is right.
Title: Re: Video driver problem
Post by: pq5190362 on July 06, 2016, 02:51:01 PM
As per:
Quote
Version bumped to 0.4.901
This version is Version 0.5 RC2 (Release Candidate 2). If there
are no major regressions from Version 0.3.3 or 0.4.0, this version
will be released as Version 0.5 shortly.

..maybe it's better to wait a day or two for 0.5?

xf86-video-openchrome 0.5 has been released now, see:

https://cgit.freedesktop.org/openchrome/xf86-video-openchrome/log/?showmsg=1
https://lists.freedesktop.org/archives/openchrome-devel/2016-July/002889.html
http://www.phoronix.com/scan.php?page=news_item&px=OpenChrome-0.5-Released

 ;)
Title: Re: Video driver problem
Post by: Juanito on July 07, 2016, 01:59:08 AM
posted to x86 repo
Title: Re: Video driver problem
Post by: Hampelmann91 on July 19, 2016, 03:02:40 AM
Thank You!  :)
Title: Re: Video driver problem
Post by: pq5190362 on August 03, 2016, 02:23:42 PM
Thank You!  :)

Is DVI working for you now with xf86-video-openchrome 0.5?
Title: Re: Video driver problem
Post by: Hampelmann91 on August 25, 2016, 11:19:55 PM
Sorry,
it's not possoible for me to check this at present.  :(
Because system is running and I wont stop it.
Title: Re: Video driver problem
Post by: jrk24 on August 01, 2018, 06:59:18 AM
I know this is an old thread and I'm new to TinyCore, but I am wondering if there are any plans to package the openchrome video driver for version 9.0. I have a bunch of Wyse Xeniths I would like to utilize. If not, any guidance on how to help package it would be appreciated.
Thanks!
Title: Re: Video driver problem
Post by: Juanito on August 03, 2018, 04:59:31 AM
xf86-video-openchrome posted
Title: Re: Video driver problem
Post by: jrk24 on August 03, 2018, 11:10:24 AM
Wow, thanks! You're awesome!