Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

fbdev driver on Wheezy

27 views
Skip to first unread message

Andrew Wood

unread,
Mar 15, 2015, 2:00:05 PM3/15/15
to
Im trying to get Wheezy with lightdm and Xfce to work on an old kiosk
machine with a Silicon Motion SM712 chip. Currently X just turns the
screen off as soon as it starts and from the Googling Ive done it seems
this is a common problem with both the silicon motion driver and the
generic vesa driver and the solution appears to be using the fbdev
driver instead?

How can I force X to use this driver under Wheezy, there doesnt even
seem to be an xorg.conf file anywhere?

Thanks


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5505C506...@perpetualmotion.co.uk

Sven Joachim

unread,
Mar 15, 2015, 4:10:06 PM3/15/15
to
On 2015-03-15 18:44 +0100, Andrew Wood wrote:

> Im trying to get Wheezy with lightdm and Xfce to work on an old kiosk
> machine with a Silicon Motion SM712 chip. Currently X just turns the
> screen off as soon as it starts and from the Googling Ive done it
> seems this is a common problem with both the silicon motion driver and
> the generic vesa driver and the solution appears to be using the fbdev
> driver instead?
>
> How can I force X to use this driver under Wheezy, there doesnt even
> seem to be an xorg.conf file anywhere?

You can create your own, the following four lines are sufficient:

--8<---------------cut here---------------start------------->8---
Section "Device"
Identifier "n"
Driver "fbdev"
EndSection
--8<---------------cut here---------------end--------------->8---

Save this as /etc/X11/xorg.conf, and X will use the fbdev driver.

Good luck,
Sven


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/87lhiy6...@turtle.gmx.de

Andrew Wood

unread,
Mar 15, 2015, 7:30:04 PM3/15/15
to
On 15/03/15 20:07, Sven Joachim wrote:
> On 2015-03-15 18:44 +0100, Andrew Wood wrote:
>
>> Im trying to get Wheezy with lightdm and Xfce to work on an old kiosk
>> machine with a Silicon Motion SM712 chip. Currently X just turns the
>> screen off as soon as it starts and from the Googling Ive done it
>> seems this is a common problem with both the silicon motion driver and
>> the generic vesa driver and the solution appears to be using the fbdev
>> driver instead?
>>
>> How can I force X to use this driver under Wheezy, there doesnt even
>> seem to be an xorg.conf file anywhere?
> You can create your own, the following four lines are sufficient:
>
> --8<---------------cut here---------------start------------->8---
> Section "Device"
> Identifier "n"
> Driver "fbdev"
> EndSection
> --8<---------------cut here---------------end--------------->8---
>
> Save this as /etc/X11/xorg.conf, and X will use the fbdev driver.

Thanks Sven

Ive done some experimenting using a skeleton xorg.conf file created
using Xorg -configure and then editing it.

Below is the complete file. The machine has two monitor ports one LVDS
to which the kiosks LCD is normally connected which is 800x600 and a VGA
port to which I have a temporary 15" CRT connected via a KVM switch.

Ive thus created two Device entries with a separate screen number for
each. With the driver set to 'siliconmotion' running X with Xorg -config
/root/xorg.conf.new it flashes an X GUI output for a split second - Im
sure I see the Wheezy grey background and Debian logo then the screen
turns off.

Setting the driver to 'fbdev' X refuses to start with a seg fault.

Ive learnt a lot about X configuration tonight having not done it
before. I feel Im almost there but not quite. Can anyone enlighten me as
to what is wrong please?

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection

Section "Module"
Load "dbe"
Load "dri2"
Load "glx"
Load "extmod"
Load "dri"
Load "record"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "ShadowFB" # [<bool>]
#Option "Rotate" # <str>
#Option "fbdev" # <str>
#Option "debug" # [<bool>]
Identifier "Card0"
Driver "fbdev"
BusID "PCI:1:0:0"
Screen 0
EndSection

Section "Device"
Identifier "Card1"
Driver "fbdev"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "800x600"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "800x600"
EndSubSection
EndSection



--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/550615AE...@perpetualmotion.co.uk

David Wright

unread,
Mar 15, 2015, 8:20:06 PM3/15/15
to
Quoting Andrew Wood (and...@perpetualmotion.co.uk):

> Section "Device"
> ### Available Driver options are:-
> ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
> ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
> ### <percent>: "<f>%"
> ### [arg]: arg optional
> #Option "ShadowFB" # [<bool>]
> #Option "Rotate" # <str>
> #Option "fbdev" # <str>
> #Option "debug" # [<bool>]
> Identifier "Card0"
> Driver "fbdev"
> BusID "PCI:1:0:0"
> Screen 0
> EndSection
>
> Section "Device"
> Identifier "Card1"
> Driver "fbdev"
> BusID "PCI:1:0:0"
> Screen 1
> EndSection

You've got two cards on one PCI address. lspci might tell you what the
correct values are.

Cheers,
David.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/20150316000...@alum.home

Andrew Wood

unread,
Mar 17, 2015, 8:20:05 AM3/17/15
to

On 16/03/15 00:09, David Wright wrote:
>
> You've got two cards on one PCI address. lspci might tell you what the
> correct values are.
>
> Cheers,
> David.
>
>
It just lists one

01:00.0 VGA compatible controller Silicon Motion SM712

I suspect what may be happening is its defaulting to video out on the
LVDS and turning the VGA port off. Is there a way to configure it to
mirror the output on both ports simultaneously?

Thanks
Andrew


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/55081B9B...@perpetualmotion.co.uk

Elimar Riesebieter

unread,
Mar 17, 2015, 10:00:04 AM3/17/15
to
* Andrew Wood <and...@perpetualmotion.co.uk> [2015-03-17 12:18 +0000]:

[...]
> It just lists one
>
> 01:00.0 VGA compatible controller Silicon Motion SM712
>
> I suspect what may be happening is its defaulting to video out on the LVDS
> and turning the VGA port off. Is there a way to configure it to mirror the
> output on both ports simultaneously?

Maybe https://wiki.debian.org/XStrikeForce/HowToRandR12

Elimar
--
Alles was viel bedacht wird ist bedenklich!;-)
Friedrich Nietzsche


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/20150317135...@baumbart.home.lxtec.de

Andrew Wood

unread,
Mar 17, 2015, 5:10:08 PM3/17/15
to

On 17/03/15 13:50, Elimar Riesebieter wrote:
> * Andrew Wood <and...@perpetualmotion.co.uk> [2015-03-17 12:18 +0000]:
>
> [...]
>> It just lists one
>>
>> 01:00.0 VGA compatible controller Silicon Motion SM712
>>
>> I suspect what may be happening is its defaulting to video out on the LVDS
>> and turning the VGA port off. Is there a way to configure it to mirror the
>> output on both ports simultaneously?
> Maybe https://wiki.debian.org/XStrikeForce/HowToRandR12
>
> Elimar
I dont think that will work with the Silicon Motion SM712 unfortunately


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5508961B...@perpetualmotion.co.uk
0 new messages