Help - Search - Members - Calendar
Full Version: Xfree86 Problems
Linuxhelp > Support > Technical Support
gregmac
I'm running firefox in a kiosk-style mode (not using the kiosk extensions) in debian, but having a few problems.

xwindows is started with "xinit /usr/bin/firefox -- :0"

debconf defaults are used for the majority of this, the only setting I changed was to make the mouse on /dev/psaux use the ImPS/2 protocol instead of just PS/2, in order to make the scroll wheel work.

Here are the issues I have:

  • if the mouse is not plugged in, xfree86 completely freezes once it starts, and I can't even use the keyboard (ctrl+alt+bksp doesn't even work, neither does changing consoles).
  • the bottom of the screen is cut off by a few pixels (not a monitor problem, the moniter is adjusted properly). Enough that I can't see the bottom of scrollbars, for example.
  • in Firefox, none of the dropdown select boxes work. When you click on one, it flashes and shows it being focused, but it won't actually show the dropdown. You can press up/down to select options, however. Not sure if this is Xfree86 or firefox.
  • I have a number of these mini-itx systems.. I have a couple slightly older ones (as in, maybe four months old at this point) that run X very slowly.. it almost seems as if it's frozen if you try to move the mouse, then a few seconds later (somewhere between 5 and 30) it will move. The motherboards are the same model, and I can't see a revision difference (though to be honest i haven't looked super closely). If I change the priority of xwindows, it makes it better, but still unusable.


My XF86Config-4 is posted below:

CODE
# XF86Config-4 (XFree86 X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
#   cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
#   md5sum /etc/X11/XF86Config-4 > /var/lib/xfree86/XF86Config-4.md5sum
#   dpkg-reconfigure xserver-xfree86
Section "Files"
    FontPath    "unix/:7100"      # local font server
    # if the local font server has problems, we can fall back on these
    FontPath    "/usr/lib/X11/fonts/misc"
    FontPath    "/usr/lib/X11/fonts/cyrillic"
    FontPath    "/usr/lib/X11/fonts/100dpi/:unscaled"
    FontPath    "/usr/lib/X11/fonts/75dpi/:unscaled"
    FontPath    "/usr/lib/X11/fonts/Type1"
    FontPath    "/usr/lib/X11/fonts/CID"
    FontPath    "/usr/lib/X11/fonts/Speedo"
    FontPath    "/usr/lib/X11/fonts/100dpi"
    FontPath    "/usr/lib/X11/fonts/75dpi"
EndSection
Section "Module"
    Load    "GLcore"
    Load    "bitmap"
    Load    "dbe"
    Load    "ddc"
    Load    "dri"
    Load    "extmod"
    Load    "freetype"
    Load    "glx"
    Load    "int10"
    Load    "record"
    Load    "speedo"
    Load    "type1"
    Load    "vbe"
EndSection
Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver  "keyboard"
    Option  "CoreKeyboard"
    Option  "XkbRules"    "xfree86"
    Option  "XkbModel"    "pc104"
    Option  "XkbLayout"    "us"
EndSection
Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver  "mouse"
    Option  "CorePointer"
    Option  "Device"  "/dev/psaux"
    Option  "Protocol"  "ImPS/2"
    Option  "Emulate3Buttons"    "true"
    Option  "ZAxisMapping"  "4 5"
EndSection

Section "InputDevice"
    Identifier    "Generic Mouse"
    Driver  "mouse"
    Option  "SendCoreEvents"    "true"
    Option  "Device"  "/dev/input/mice"
    Option  "Protocol"  "ImPS/2"
    Option  "Emulate3Buttons"    "true"
    Option  "ZAxisMapping"  "4 5"
EndSection
Section "Device"
    Identifier    "Generic Video Card"
    Driver  "vesa"
EndSection
Section "Monitor"
    Identifier    "Generic Monitor"
    HorizSync    28-50
    VertRefresh    43-75
    Option  "DPMS"
EndSection
Section "Screen"
    Identifier    "Default Screen"
    Device  "Generic Video Card"
    Monitor  "Generic Monitor"
    DefaultDepth    24
    SubSection "Display"
 Depth  1
 Modes  "800x600" "640x480"
    EndSubSection
    SubSection "Display"
 Depth  4
 Modes  "800x600" "640x480"
    EndSubSection
    SubSection "Display"
 Depth  8
 Modes  "800x600" "640x480"
    EndSubSection
    SubSection "Display"
 Depth  15
 Modes  "800x600" "640x480"
    EndSubSection
    SubSection "Display"
 Depth  16
 Modes  "800x600" "640x480"
    EndSubSection
    SubSection "Display"
 Depth  24
 Modes  "800x600" "640x480"
    EndSubSection
EndSection
Section "ServerLayout"
    Identifier    "Default Layout"
    Screen  "Default Screen"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
    InputDevice    "Generic Mouse"
EndSection
Section "DRI"
    Mode    0666
EndSection


If I need to post anything else, let me know

Thanks
gregmac
Update:

I've solved two of these problems:

The screen running longer was a mistake of mine. To make my kiosk browser, I had a page that just did a window.open() call and set the height to screen.height. What I didn't realize, was that it was setting the client area height, not the total window size. So when the navigation bar was added at the top, my window was actually being created slightly larger than the screen area. Setting it to height - 34 fixed the problem.

The mouse issue was a fairly simple one. Adding:
CODE
Section "ServerFlags"
  Option    "AllowMouseOpenFail" "true"
EndSection

Allows it to run without a mouse plugged in
Jim
I noticed your using all generic drivers in you XF86Config file. Thats probably most of your problem. Exactly what are the specs on these boxes your trying to run this set up on? Maybe if we tweaked the modules a little we could make this run a little better.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.