LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-19-2016, 08:47 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Problem switching between X and virtual console on a Samsung NC20


The distro is Dragora 2, which is the first completely libre distro I have used. My video chip is a Via 9chrome and X uses openchrome to run it. It seems fine except for the absence of dri (which I don't really need as I don't do demanding things like game play). But I have the following problem:

I can switch out of X to a virtual console. I can switch between virtual consoles. But I can't switch from a virtual console to X. When I try, the screen goes black and the keyboard seems to lock up. I've tried ctrl-alt-Fn, ctrl-alt-del and sysreq-reisub; nothing works and I have to switch off manually.

Well that is a nuisance but I can live with it. You don't have to use VCs after all; you can always use XTerms instead. What is much more serious is that it makes suspending impossible. When I resume from suspend, I initially get some printout from the system console. Then it tries to switch back into X and triggers this bug.

I suspect that it's a video driver problem; nvidia chips are known to do this kind of thing. But with nvidia, you can install a proprietary driver that behaves better. Via has a proprietary driver called via-agp, but they don't seem to do a Linux version any more, though they definitely used to.

Has anyone else got this to work on a Samsung?
 
Old 03-30-2016, 12:57 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i subscribed to this thread a while ago, but didn't use LQ for... over a week.
sorry to see you didn't seem to get anywhere with this.
all i can say is that via video chips (that's SiS, right?) are bad news for linux and the openchrome driver i think is one of those retro-engineered affairs, and development is probably zero these days

anyhow, a belated welcome to LQ!
 
Old 04-20-2016, 02:28 PM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
If anyone wants to know how this ended, here is the saga of my attempts to find an alternative driver to openchrome:

1) Vesa. This causes the X server to segfault. I have no idea why.

2) fbdev. This doesn't cause a crash, but the screen becomes covered with a crazy patchwork of colours. Virtual consoles become unusable too. The only escape is to reboot.

3) Proprietary driver. Via used to produce one of these, but haven't updated it for years. The versions I found were all binary (and 32-bit at that). Even if the architecture had been right for my system, they would only have worked with the X server they were built against.

So it looks like I'm stuck with openchrome which, apart from this bug, works just fine.
 
Old 04-23-2016, 09:52 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Hallelujah! I found a more up-to-date version of Openchrome (0.4) and built it. At first I didn't see any difference because it had gone into /usr/lib/xorg/modules/drivers, and Dragora uses /usr/lib64/xorg/modules/drivers. So I was still actually using the old buggy driver. But when I twigged that and put the new version where it should be, the bug was gone!
 
Old 04-23-2016, 12:02 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
congrats!
mind posting the source, and maybe some tips for compiling?
others might benefit.
it (sheeety via gpus & openchrome) does come up every now and then.
 
Old 04-23-2016, 12:32 PM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
There's a repository of xorg drivers (both input and video) at http://ftp.x.org/pub/individual/drivers, with multiple versions. Some other drivers that I tested came from that site too. The good version of openchrome is xf86-video-openchrome-0.4.0. It's only just come out.

When configuring it, I used "--prefix=/usr", which I always do for libraries because /usr/lib is where programs expect to find them. But for Dragora, which has separate /usr/lib and /usr/lib64, I should have used "--libdir=/usr/lib64" as well. I didn't, so I had to move some files about afterwards.

You learn by doing, don't you!
 
Old 04-23-2016, 12:42 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by hazel View Post
It's only just come out.
wot!
still in development! i thought the hardware was obsolete.

anyhow, thanks on behalf of whoever.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Video Display goes blank when switching from X to Virtual Console john.wythe@activant.com Linux - Hardware 5 11-10-2010 07:24 AM
Fedora 7 crashes when switching to virtual console SpecialAgentR Linux - Software 6 06-12-2007 08:50 PM
Fedora 7 crashes when switching to virtual console SpecialAgentR Linux - Hardware 3 06-09-2007 03:30 PM
Xorg virtual console switching doesn't work nickptar Linux - Software 0 06-15-2006 01:29 PM
X Prevents Virtual Console Switching samuelpauls Linux - Software 2 09-23-2005 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration