Installing Ubuntu 10.04 on fitPC2 and fitPC2i

elupus
Posts: 11
Joined: Tue Apr 13, 2010 1:11 am

Re: Ubuntu 10.04 with psb driver WORKS!

Post by elupus »

Just posted a patch for my issue on the page above.

jsmaniac
Posts: 2
Joined: Tue Aug 17, 2010 3:07 am

Re: Ubuntu 10.04 with psb driver WORKS!

Post by jsmaniac »

Solution to have fit-pc2 + ubuntu 10.04 + Samsung SyncMaster P2370 :

1) Follow fly's four first steps :
* Install ubuntu 10.04
* Install latest updates (dist-upgrade instead of just upgrade)

Code: Select all

sudo apt-get update && sudo apt-get dist-upgrade
* Reboot (IMPORTANT), so dkms compiles the psb driver for the new kernel, not the old one
* Add ppa:gma500 repository

Code: Select all

sudo add-apt-repository ppa:gma500/ppa && sudo apt-get update

Code: Select all

sudo apt-get install poulsbo-driver-2d poulsbo-driver-3d poulsbo-config
[ edit ]
You must also run :

Code: Select all

echo psb | sudo tee -a /etc/initramfs-tools/modules
sudo update-initramfs -u
[ /edit ]

2) Use a modified version of compulab's xorg.conf : http://pastebin.ca/1918613

Code: Select all

sudo mv -i /etc/X11/xorg.conf "/etc/X11/xorg.conf.$(date)" && wget 'http://pastebin.ca/raw/1918613' -O- | sudo tee /etc/X11/xorg.conf > /dev/null
3) edit /etc/default/grub and change the first three options to (so it displays the grub menu, and boots on the rescue version by default) :

Code: Select all

GRUB_DEFAULT=1
GRUB_HIDDEN_TIMEOUT=10
GRUB_HIDDEN_TIMEOUT_QUIET=false
4) Regenerate grub's config :

Code: Select all

sudo update-grub
5) Reboot

6) When the fit-pc has booted, press ctrl-alt-f1 ctrl-alt-f2 (and maybe ctrl-alt-f7) a few times until you see the menu that allows you to choose what to do and select "Resume".

7) Go to vt 1 using ctrl-alt-f1. I have the strong feeling that X fails more often when not started on vt1.

8) Login, then start X and gnome-session manually (gdm seems to fail).

Code: Select all

X & sleep 15; DISPLAY=:0 gnome-session
The "sleep 15" is there because if I'm not on the vt where X is started (with a black screen), gnome-session crashes complaining it can't access some kind of ressource.

9) You'll need to repeat steps 6, 7 and 8 each time you reboot. Yeah, it's a pain. But I'm glad it works now (just spent two days on it !).


If you need to re-create the xorg.conf yourself (for another monitor say), here's how I did it :

I used "sudo ddcprobe | grep monitorrange" to get the HorizSync and VertRefresh (in that order) and got the Modeline 's from an /var/log/xorg.0.log generated with compulab's xorg.conf. I then added the HorizSync and VertRefresh and Modelines (without the "x0.0" at the end of the modeline name and withour the "(xx khz)" at the end) to the Monitor section of xorg.conf, and added

Code: Select all

Modes     "1920x1080" "800x600" ....
to each Display subsection of the Screen section.
I also added the following to the Device section, like somebody suggested in this thread :

Code: Select all

Option      "NoDDC"                     "On"


edit :
After using that setup for a short while, I noticed that :
* The sound doesn't work. (the sound card is in the SCH poulsbo chipset, so I guess the psb driver is in conflict with the hda_audio driver somehow).
* X crashes when halting the computer, the keyboard then becomes unresponsive, and the power button doesn't have any effect. But the system is still alive since it syncs the disks every 5 seconds (my usb key flashes every 5 seconds).
Last edited by jsmaniac on Wed Aug 25, 2010 12:06 pm, edited 2 times in total.

jsmaniac
Posts: 2
Joined: Tue Aug 17, 2010 3:07 am

Re: Ubuntu 10.04 with psb driver WORKS!

Post by jsmaniac »

Update : Sound works. You just need to add your user to the "audio" group. Stupid, stupid, stupid me.

Code: Select all

sudo adduser your-username audio
Don't forget to log out completely and log back in for the group change to take effect (or reboot the system).

Also, the sound still seems quirky : I had to do kill pulseaudio and let it restart (automatically) in order to hear anything (might be that the instance of pulseaudio that started before the group change was still lurking arround, dunno).

Code: Select all

killall pulseaudio
Now I can listen to good ol' atari demoscene music \o/ ! I'm as happy as can bee :D .

Note : For the halting problem (pun intended), to shut down your computer cleanly, simply go to console 2 (ctrl-alt-f2), login and type :

Code: Select all

sudo halt

fly
Posts: 162
Joined: Thu Jul 22, 2010 2:02 pm

Re: Ubuntu 10.04 with psb driver WORKS!

Post by fly »

Hey everybody,

here are some news from the front line aka the ubuntu forums thread about gma500 [1]:

* Flash playback significantly improved
* Compiz working

It will need some testing, working and time to get those into the mainline ppa, but you are free to try the instructions at [2]. I, myself, haven't had the time to test those changes, but they look promising.

@jsmaniac: Thanks for your howto!


edit: I updated my initial post with those information.

[1] http://ubuntuforums.org/showthread.php?t=1229345
[2] http://ubuntuforums.org/showpost.php?p= ... count=1727

fly
Posts: 162
Joined: Thu Jul 22, 2010 2:02 pm

Re: Ubuntu 10.04 with psb driver WORKS!

Post by fly »

*bump*
yvesdm3000 wrote:First one i'll tackle in a couple of weeks is Xv (Actually finish port to ExaMixed).
lucazade wrote:This is a good news, i think fixed Xv we'd have a full featured driver like was in Karmic.
So we are somewhat near on a stable psb driver for the current long term support release of Ubuntu, which is great news! Maybe this will even get to a point where Compulab can officially support 10.04. Even for the next release, 10.10, we had psb running, but a recent update of xorg broke it (again). However, there is work going on to resolve this issue, so we might even see a 10.10 release with a psb driver right after the start -- its quite clear they wont ship the ppa driver in the release, but ppa might be ready to use the day maverick is published.

adamlambert
Posts: 1
Joined: Sun Jan 10, 2010 9:00 pm

Re: Ubuntu 10.04 with psb driver WORKS!

Post by adamlambert »

Can some one post an ISO of this? that would be awesome.

fly
Posts: 162
Joined: Thu Jul 22, 2010 2:02 pm

Re: Ubuntu 10.04 with psb driver WORKS!

Post by fly »

Can some one post an ISO of this? that would be awesome.
The best way to get fitpc2 up and running with 10.04 is described at the first post of this thread. There is a user generated iso available at [1] but it is somewhat dated and will most likely not work with fitpc2 because of xorg.conf issues. However, you might just want to try it. I think they will update the iso once the driver is more matured. As I said, I would rather try the howto..

[1] http://linuxtracker.org/download.php?id ... b1.torrent

Lake Trout
Posts: 4
Joined: Sat Oct 17, 2009 9:43 am

Re: Ubuntu 10.04 with psb driver WORKS!

Post by Lake Trout »

jsmaniac wrote:Solution to have fit-pc2 + ubuntu 10.04 + Samsung SyncMaster P2370 :
If you need to re-create the xorg.conf yourself (for another monitor say), here's how I did it :

I used "sudo ddcprobe | grep monitorrange" to get the HorizSync and VertRefresh (in that order) and got the Modeline 's from an /var/log/xorg.0.log generated with compulab's xorg.conf. I then added the HorizSync and VertRefresh and Modelines (without the "x0.0" at the end of the modeline name and withour the "(xx khz)" at the end) to the Monitor section of xorg.conf, and added

Code: Select all

Modes     "1920x1080" "800x600" ....
to each Display subsection of the Screen section.
I also added the following to the Device section, like somebody suggested in this thread :

Code: Select all

Option      "NoDDC"                     "On"
This just worked for me - thanks a ton!! The "NoDDC" option made the difference after adding the modelines and h/v refresh.

from my xorg (copied stuff from /var/log/xorg.log):

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 15.0 - 58.0
VertRefresh 56.0 - 75.0
Modeline "1360x768" 72.00 1360 1408 1440 1520 768 771 776 790
Modeline "1280x768" 68.25 1280 1328 1360 1440 768 775 778 790
Modeline "800x600" 40.00 800 840 968 1056 600 601 605 628
Modeline "640x480" 31.50 640 656 720 840 480 481 484 500
Modeline "640x480" 25.18 640 656 752 800 480 490 492 525
Modeline "1024x768" 78.75 1024 1040 1136 1312 768 769 772 800
Modeline "1024x768" 65.00 1024 1048 1184 1344 768 771 777 806
Modeline "800x600" 49.50 800 816 896 1056 600 601 604 625
Modeline "1280x720" 74.48 1280 1336 1472 1664 720 721 724 746

EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
---- same stuff ----
Identifier "Card0"
Driver "psb"
VendorName "Intel Corporation"
BoardName "System Controller Hub (SCH Poulsbo) Graphics Controller"
BusID "PCI:0:2:0"
Option "NoDDC" "On"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
Modes "1360x768" "1280x768" "1280x720" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
Modes "1360x768" "1280x768" "1280x720" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1360x768" "1280x768" "1280x720" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
Modes "1360x768" "1280x768" "1280x720" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1360x768" "1280x768" "1280x720" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1360x768" "1280x768" "1280x720" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

fly
Posts: 162
Joined: Thu Jul 22, 2010 2:02 pm

Re: Ubuntu 10.04 with psb driver WORKS!

Post by fly »

This just worked for me - thanks a ton!! The "NoDDC" option made the difference after adding the modelines and h/v refresh.
We will most likely see a patch applied to the mainline psb driver quite soon. For more information see [1].

[1] http://code.google.com/p/gma500/issues/detail?id=34

poiuytr
Posts: 12
Joined: Tue May 19, 2009 2:08 pm

Re: Ubuntu 10.04 with psb driver WORKS now!

Post by poiuytr »

Instructions in the first post worked like a charm, thanks topic starter!
However considering this:
fly wrote: Instructions (DO NOT FOLLOW UNLESS YOU KNOW WHAT YOU ARE DOING):

Code: Select all

sudo apt-add-repository ppa:klich-lukasz/kleewho
sudo apt-get update
sudo apt-get install mplayer-vaapi gnome-mplayer gecko-mediaplayer
Use these settings for gnome-mediaplayer found here and here (gnome player -> edit -> preferences). Polish (?) but the textfields layout are the same in english.

Download FlashVideoReplacer (Firefox add-on: Tools -> get addons and install)
how could one install mplayer-vaapi and gecko-mediaplayer while kleewho ppa does not has these?
It contains only gnome-mplayer but it looks like it is not enough to play HD video, right?
Thanks.

Post Reply

Return to “Ubuntu 10.04”