How to correctly detect a device

From: Otto Wyss (otto.wyss_at_orpatec.ch)
Date: 05/15/04

  • Next message: Kasper Dupont: "Re: How to correctly detect a device"
    Date: Sat, 15 May 2004 19:55:01 +0200
    
    

    I've written a small application which checks if the framebuffer device
    exists and is accessable (kernel driver exists). I've simply opened the
    "/dev/fb0" and send some ioctl to get information. So far it works, at
    least on a system with a correct framebuffer. But I'm not sure if this
    is the right way, what happens if the device is named different. Does
    anyone know a better solution?

    The source can be view here
    "http://cvs.sourceforge.net/viewcvs.py/wyodesktop/wyoDesktop/checkdfb/sr
    c/app.cpp?view=markup".

    BTW it would be nice if someone could run this small sample on a system
    without a framebuffer and tell me the outcome. You can download it from
    here "http://wyodesktop.sourceforge.net/checkapp.html".

    O. Wyss

    -- 
    See a huge pile of work at "http://wyodesktop.sourceforge.net/"
    

  • Next message: Kasper Dupont: "Re: How to correctly detect a device"

    Relevant Pages

    • How to correctly detect a device
      ... I've written a small application which checks if the framebuffer device ... exists and is accessable (kernel driver exists). ... "/dev/fb0" and send some ioctl to get information. ...
      (comp.os.linux.development.system)
    • Framebuffer problem
      ... I'm totaly new to the framebuffer stuff, ... Using make menuconfig I see that Device drivers --> Graphics support --> ... VESA driver type (vesafb-tng) ... The framebuffer device was mapped to memory successfully. ...
      (comp.os.linux.embedded)
    • Re: web browser choices
      ... find framebuffer device, and its true - i don't have /dev/fb0. ... Unfortunatelly, the solution I found was to compile a kernel with framebuffer support built in it, not as a module. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)
    • Re: framebuffer doesnt work ?
      ... > I've got a test prog from the web as attached. ... > The framebuffer device was opened successfully. ... again if the correct kernel driver for your grafic card is loaded. ...
      (Debian-User)
    • Problems with xawtv on testing/unstable
      ... WARNING: Your X-Server has no DGA support. ... couldn't find framebuffer base address, ... ioctl: VIDIOCCAPTURE: Nepřípustný argument ... ioctl VT_GETSTATE: Invalid argument ...
      (Debian-User)