Tiny Core Linux

General TC => Tiny Core Netbooks => Topic started by: bbelden on May 07, 2010, 07:58:24 AM

Title: 800x480 resolution for EEEPC
Post by: bbelden on May 07, 2010, 07:58:24 AM
I am wondering if someone could help to set the resolution for my EEEPC. I see this topic has been covered and somebody has solved the problem but they don't explain the steps needed to accomplish it.
thank you.
Title: Re: 800x480 resolution for EEEPC
Post by: bbelden on May 07, 2010, 11:28:14 AM
I am part way there. I have loading at startup, 915resolution.tcz and xbdev.tcz. That part works because after I reboot, if I type "sudo 915resolution -l" in a terminal, it returns 800x480 resolution as an option--something it didn't do before. The problem is when I check tce.installed, it shows the default resolution "1024x600". What am I missing?

Thanks
Title: Re: 800x480 resolution for EEEPC
Post by: roberts on May 07, 2010, 12:42:27 PM
Not having such hardware to confirm, I believe, if 915resolution is working, then try adding

/usr/local/sbin/915resolution 50 800 480

to your /opt/bootlocal.sh
Title: Re: 800x480 resolution for EEEPC
Post by: bbelden on May 07, 2010, 06:23:50 PM
If I put 915resolution and parameters in bootlocal, will I have to restart the x server after I do this?
Title: Re: 800x480 resolution for EEEPC
Post by: maro on May 07, 2010, 08:36:41 PM
Yep, because '/opt/bootlocal.sh' gets run (asynchronously) before the X server during the boot process.

So you could either reboot, or if you just want to test things out it might be enough to 'Exit to Prompt' (i.e. terminate the X server), apply your changes (whatever you've added to '/opt/bootlocal.sh'), and start the X server again (i.e. startx)
Title: Re: 800x480 resolution for EEEPC
Post by: OldAdamUser2 on May 08, 2010, 04:52:04 AM
Note the last entry on this thread:

http://forum.tinycorelinux.net/index.php?topic=5490.0

Quote
Quote
..Then sudo 915resolution 45 1024 768 in my case.  On reboot, its back to a dark screen and xvesa has no option to revert to a usable 600x480 like before.

This command will need to be run after the 915resolution extension is loaded on every boot - either you can add it to /opt/bootlocal.sh (and make sure it is in your backup) or make your own customised 915resolution extension with the command in the startup script
Title: Re: 800x480 resolution for EEEPC
Post by: bbelden on May 08, 2010, 09:01:36 AM
I'm getting closer. If I load the 915resolution parameters I want in bootlocal, I end up with a screen with messed up colors and incorrect resolution. If I then do "ctrl-alt-backspace, I can't even see what I'm typing, but if I type "startx", I get my session started with proper colors and proper resolution! Any ideas what to do next?
thanks.
Title: Re: 800x480 resolution for EEEPC
Post by: bbelden on May 08, 2010, 01:54:09 PM
I think the 915resolution start up script, tce.installed/915resolution, which has the wrong resolution specified in it, is fighting with my 915resolution startup I have in bootlocal. Is there a way for me to modify tce.installed/915resolution startup script? I think it would work better than having 915resolution start in bootlocal.
Title: Re: 800x480 resolution for EEEPC
Post by: maro on May 08, 2010, 03:59:11 PM
The safest way for you to avoid the 915resolution startup script would be to have your own remastered 915resolution extension. You could try the following:
Code: [Select]
tc@box:~$ tce-load -wi squashfs-tools-4.0 2> /dev/null
Downloading: squashfs-tools-4.0.tcz
squashfs-tools-4.0.tcz: OK

tc@box:~$ tce-fetch.sh 915resolution.tcz

tc@box:~$ unsquashfs 915resolution.tcz
Parallel unsquashfs: Using 1 processor
2 inodes (5 blocks) to write

[===================================================================|] 5/5 100%
created 2 files
created 5 directories
created 0 symlinks
created 0 devices
created 0 fifos

tc@box:~$ rm -rf squashfs-root/usr/local/tce.installed/915resolution

tc@box:~$ mksquashfs squashfs-root my915resolution.tcz
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on my915resolution.tcz, block size 4096.
[===================================================================|] 4/4 100%
Exportable Squashfs 4.0 filesystem, data block size 4096
        compressed data, compressed metadata, compressed fragments
        duplicates are removed
Filesystem size 6.63 Kbytes (0.01 Mbytes)
        46.74% of uncompressed filesystem size (14.18 Kbytes)
Inode table size 112 bytes (0.11 Kbytes)
        53.33% of uncompressed inode table size (210 bytes)
Directory table size 97 bytes (0.09 Kbytes)
        75.78% of uncompressed directory table size (128 bytes)
Number of duplicate files found 0
Number of inodes 6
Number of files 1
Number of fragments 0
Number of symbolic links  0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 5
Number of ids (unique uids + gids) 2
Number of uids 1
        tc (1001)
Number of gids 1
        staff (50)
Or you could change the values in the start-up file to suit your situation, in which case you won't need an entry in '/opt/bootlocal.sh'). That is probably anyway the better option since I assume that your issue might be a race condition between the (asynchronous) execution of '/opt/bootlocal.sh' and the X server start.
Title: Re: 800x480 resolution for EEEPC
Post by: bbelden on May 08, 2010, 05:21:34 PM
Maro--Thanks for helping me. How do I change the /tce.installed/915resolution startup file. I have tried deleting it, modifying it and nothing sticks--when I reboot the old file with the incorrect parameters is back.

Thanks, I appreciate everyone's help--I am so close.
Title: Re: 800x480 resolution for EEEPC
Post by: maro on May 08, 2010, 05:52:38 PM
The start-up file (i.e. 'usr/local/tce.installed/915resolution') is part of the extension, hence I was suggesting to remove it (via the 'rm ...' command in my suggested steps). In your case it souds like you plan to change it's contents.

If you want to replace '915resolution.tcz' with 'my915resolution.tcz' you will have to remove the (original) '915resolution.tcz' and replace it with your own 'my915resolution.tcz' in your '.../tce/optional' directory. Please note that '...' stands for the mount point where your hard disk or USB drive partition holding your extensions is mounted to. Furthermore you'll have to change the respective entry in '.../tce/onboot.lst'. Alternatively you don't change the file name and just replace the "original" extension file with your "own" one.

Title: Re: 800x480 resolution for EEEPC
Post by: bbelden on May 09, 2010, 06:11:56 AM
I found a fix--at least it appears I have. You were right Maro, since bootlocal gets backgrounded, it's a race to see if bootlocal finishes before Xvesa starts. Since I could reload Xvesa after my machine completed booting and get the proper resolution, I knew this was the case. So I tried putting the 915resolution commands first in my bootlocal file and it worked--boots up with the proper resolution right off the bat. I inserted a comment in my bootlocal file that says: #this command must always run first--so I should be o.k.

Thanks everybody for your help--Tiny Core Rocks!
Title: Re: 800x480 resolution for EEEPC
Post by: OldAdamUser2 on May 10, 2010, 05:16:46 AM
I found a fix--at least it appears I have. You were right Maro, since bootlocal gets backgrounded, it's a race to see if bootlocal finishes before Xvesa starts. Since I could reload Xvesa after my machine completed booting and get the proper resolution, I knew this was the case. So I tried putting the 915resolution commands first in my bootlocal file and it worked--boots up with the proper resolution right off the bat. I inserted a comment in my bootlocal file that says: #this command must always run first--so I should be o.k.

Thanks everybody for your help--Tiny Core Rocks!

Fascinating discovery, bbelden! Good  work in finding the proper fix.
Title: Re: 800x480 resolution for EEEPC
Post by: mwoodruff on May 21, 2010, 10:55:42 AM
As a point of reference for anyone else trying to set up an eee 1001p: I found that for the eee 1001p, which uses a GMA3150 graphics adaptor, 915resolution doesn't work.  (It doesn't recognize the GMA3150.)  However, I met success when I loaded these extensions under Tiny Core V3 alpha 3:
graphics-2.6.33.3-tinycore.tcz
Xfbdev.tcz

Without these extensions loaded, I got a perfectly serviceable 800x600 under Xvesa, but with them loaded I get a beautiful native 1024x600.  (I also tried to get Xorg to work with the graphics extension, and it found the intel driver when directed to look for it.  But all I could get from Xorg was a black screen, and Xfbdev works out of the box.)
Title: Re: 800x480 resolution for EEEPC
Post by: Juanito on May 21, 2010, 11:24:23 AM
(I also tried to get Xorg to work with the graphics extension, and it found the intel driver when directed to look for it.  But all I could get from Xorg was a black screen, and Xfbdev works out of the box.)

This might be because you need "options i915 modeset=0" in /etc/modprobe.conf before loading the graphics-2.6.33.3-tinycore extension
Title: Re: 800x480 resolution for EEEPC
Post by: curaga on May 21, 2010, 11:57:52 AM
So, Xfbdev works with the kms fb emulation? Good news.

The "nomodeset" boot code is another way to get Xorg 7.4 running on intel/tc3.
Title: Re: 800x480 resolution for EEEPC
Post by: mwoodruff on May 21, 2010, 02:50:52 PM
At Juanito's suggestion, I tried the adding the modeset=0 line to xorg.conf before loading graphics-2.6.33.3.  This definitely had an effect -- I didn't get a high-resolution text mode like I had been getting before when I loaded graphics-2.6.33.3.  When I tried to load Xorg, though, still a black screen.  Do I need to add a modeline to xorg.conf? 

Title: Re: 800x480 resolution for EEEPC
Post by: bmarkus on May 21, 2010, 03:02:44 PM
At Juanito's suggestion, I tried the adding the modeset=0 line to xorg.conf before loading graphics-2.6.33.3. 

How did you add it? On the already running system and backup or modified in initrd?
Title: Re: 800x480 resolution for EEEPC
Post by: Juanito on May 21, 2010, 10:13:23 PM
At Juanito's suggestion, I tried the adding the modeset=0 line to xorg.conf before loading graphics-2.6.33.3. 

eh?

My suggestion was:
Quote
This might be because you need "options i915 modeset=0" in /etc/modprobe.conf before loading the graphics-2.6.33.3-tinycore extension
Title: Re: 800x480 resolution for EEEPC
Post by: mwoodruff on May 22, 2010, 08:09:10 AM
Yes, I beg your pardon... I did in fact add it to modprobe.conf and not xorg.conf.  This was a lapse of my brain when typing the post:) 

What I did was this: 

I booted into text mode with no extensions loaded and without restoring the backup (boot codes text, base, norestore). 

I added "options i915 modeset=0" to /etc/modprobe.conf then loaded the graphics extension.  When I did this, the screen remained 80 columns wide instead of going into a higher resolution text mode, as it had without the extra line in modprobe.conf. 

Then I loaded Xorg, ran Xorg -configure, copied the resulting configuration file over to /etc/X11/xorg.conf.  I checked it over and it contained the line driver="intel", which I took as a good sign.

Without making any modifications to xorg.conf, I then ran startx and got an unresponsive black screen.

At any rate, I'm very happy with Xfbdev since it gives me my native resolution, but I enjoy tinkering and it would be neat if I could figure out how to get Xorg up and running.
Title: Re: 800x480 resolution for EEEPC
Post by: curaga on May 22, 2010, 08:33:02 AM
Could be the chip is too new for the Intel driver in 7.4.
Title: Re: 800x480 resolution for EEEPC
Post by: Juanito on May 22, 2010, 09:02:55 AM
I haven't managed to get intel graphics chips to work with Xorg confless or with the suggested configuration on three different machines - it might be worth googling on your graphics chipset name and xorg.conf

Edit: if you look in /var/log/Xorg.0.log it says what devices are supported when it loads the intel driver:
Code: [Select]
(II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G,
E7221 (i915), 915GM, 945G, 945GM, 945GME, IGD_GM, IGD_G, 965G, G35,
965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
Mobile Intel® GM45 Express Chipset,
Intel Integrated Graphics Device, G45/G43, Q45/Q43, G41
Title: Re: 800x480 resolution for EEEPC
Post by: curaga on May 22, 2010, 09:49:55 AM
Intel does add support to chips before they ship, 3150 was called IDG_G at that point. Maybe support for it was not finished yet at 2.7, though.
Title: Re: 800x480 resolution for EEEPC
Post by: jur on May 22, 2010, 06:51:25 PM
If I may suggest, install puppeee with xorg, that will generate the xorg.conf file probably correctly. The copy the file over to tinycore and see if it will run like that. That's how I got mine going as confless has not been successful with mine with the external monitor attached.
Title: Re: 800x480 resolution for EEEPC
Post by: mwoodruff on May 23, 2010, 09:55:25 AM
I went over to the intellinuxgraphics website, and it looks like the 3150 has been supported only since  2.10.  Or maybe 2.9: IDGNG was supported in 2.9, then disappeared in 2.10 when support for the 3150 was added.  So it looks like Xorg7.5 might support my graphics chipset, but not Xorg7.4. 
Title: Re: 800x480 resolution for EEEPC
Post by: mwoodruff on May 24, 2010, 06:55:53 AM
And here are the relevant lines from /var/log/Xorg.0.log:

(II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
   i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G,
   E7221 (i915), 915GM, 945G, 945GM, 945GME, IGD_GM, IGD_G, 965G, G35,
   965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
   Mobile Intel® GM45 Express Chipset,
   Intel Integrated Graphics Device, G45/G43, Q45/Q43, G41

IDG_G is not present, nor is the 3150. 
Title: Re: 800x480 resolution for EEEPC
Post by: curaga on May 24, 2010, 01:30:30 PM
My typo, I meant IGD_G.