WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Make X11 output to framebuffer display.  (Read 7031 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: Make X11 output to framebuffer display.
« Reply #15 on: September 02, 2014, 09:05:55 PM »
Hi ferite
Maybe  xgamma  or  xrandr  have some useful options.

Offline ferite

  • Newbie
  • *
  • Posts: 22
Re: Make X11 output to framebuffer display.
« Reply #16 on: September 04, 2014, 03:57:45 PM »
Hi Rich:

After some time I noticed that the problem with colors is only with Java applications. In this picture you can see the application in the front, what is a Java application. At the side is Firefox showing the same picture with the proper colors:



So as I think this is not a TinyCore related issue, I have created a new thread at Java Forums.

By the way. Could you kindly recommend me a way to start X system in a more "gracefully" way?. At this time, the first text messages when the OS is loading are being output to the standard monitor (HDMI), up to when a "failed in waitforX" error is shown. At this point you could execute "startx". Only at this moment X starts for the Framebuffer Display as expected, and there is no more output for the standar monitor.

Thanks.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Make X11 output to framebuffer display.
« Reply #17 on: September 04, 2014, 04:01:46 PM »
The "failed..." message must mean that your driver is not yet loaded at that point (or hw not initialized). How do you load it? Modprobe from where?
The only barriers that can stop you are the ones you create yourself.

Offline ferite

  • Newbie
  • *
  • Posts: 22
Re: Make X11 output to framebuffer display.
« Reply #18 on: September 04, 2014, 05:17:52 PM »
Hi curaga.

I just added the modprobe line to /opt/bootlocal.sh

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Make X11 output to framebuffer display.
« Reply #19 on: September 04, 2014, 05:35:15 PM »
Add it to /opt/bootsync.sh  instead.  That will ensure that it completes before the autologin.

Offline ferite

  • Newbie
  • *
  • Posts: 22
Re: Make X11 output to framebuffer display.
« Reply #20 on: September 04, 2014, 07:15:53 PM »
Hi gerald:

I added the line:

Code: [Select]
sudo /sbin/modprobe rp_usbdisplay &
to the file /opt/bootsync.sh, just befre the line

Code: [Select]
/opt/bootlocal.sh &
but I got the message:

Quote
modprobe rp_usbdisplay not found in modules.dep

what did not occur when the command was in /bootlocal.sh. However, after de error message, I can modprobe manually, and the command is done successfully.

Thanks.
« Last Edit: September 04, 2014, 07:29:19 PM by ferite »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Make X11 output to framebuffer display.
« Reply #21 on: September 04, 2014, 07:36:13 PM »
Do not use sudo in bootsync.sh or bootlocal.sh.  It is already running as root.
Your custom extension/initrd is missing the correct deps file.
Run "depmod -a" before the modprobe.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Make X11 output to framebuffer display.
« Reply #22 on: September 04, 2014, 07:57:58 PM »
If extensions are added into the initrd (NOT /tmp/builtin/*.tcz but plain rootfs), their start scripts won't get exeuted.
I'm not sure if it's related; might be worth to be implemented?
I'm not exactly sure about the topic, though.
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Make X11 output to framebuffer display.
« Reply #23 on: September 05, 2014, 04:11:07 AM »
Also, do not background (&) the modprobe. You want the system to wait for it to complete.
The only barriers that can stop you are the ones you create yourself.