09 May, 2007

1 commit


20 Feb, 2007

1 commit

  • fb_info->bl_mutex is badly thought out and the backlight class doesn't
    need it if the framebuffer/backlight register/unregister order is
    consistent, particularly after the backlight locking fixes.

    Fix the drivers to use the order:

    backlight_device_register()
    register_framebuffer()
    unregister_framebuffer()
    backlight_device_unregister()

    and turn bl_mutex into a lock for the bl_curve data only.

    Signed-off-by: Richard Purdie

    Richard Purdie
     

13 Feb, 2007

1 commit


02 Dec, 2006

1 commit


03 Oct, 2006

1 commit


26 Sep, 2006

1 commit


27 Jun, 2006

2 commits

  • In order for this feature to work, an interface will be needed. The most
    appropriate is sysfs. However, the framebuffer console has no sysfs entry
    yet. This will create a sysfs class device entry for fbcon under
    /sys/class/graphics.

    Add a class_device entry 'fbcon' under class 'graphics'. Console-specific
    attributes which where previously under class/graphics/fb[x] are moved to
    class/graphics/fbcon. These attributes, 'con_rotate' and 'con_rotate_all',
    are also renamed to 'rotate' and 'rotate_all' respectively.

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     
  • Modify the sysfs description of a video mode such that modes are tagged with
    their scan type, (p)rogessive, (i)nterlaced, (d)ouble scan. For example,
    U:1920x1080i-50. This is useful to disambiguate some of the 'consumer' video
    timings found in CEA-861 (especially those for EDTV).

    Signed-off-by: Daniel R Thompson
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel R Thompson
     

26 Jun, 2006

1 commit

  • This patch contains a total rewrite of the backlight infrastructure for
    portable Apple computers. Backward compatibility is retained. A sysfs
    interface allows userland to control the brightness with more steps than
    before. Userland is allowed to upload a brightness curve for different
    monitors, similar to Mac OS X.

    [akpm@osdl.org: add needed exports]
    Signed-off-by: Michael Hanselmann
    Acked-by: Benjamin Herrenschmidt
    Cc: Richard Purdie
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Hanselmann
     

28 Apr, 2006

1 commit


28 Mar, 2006

1 commit

  • A set of 3 small bugfixes, all of which are related to bogus return values
    of fb colormap-setting functions.

    First, fb_alloc_cmap returns -1 if memory allocation fails. This is a hard
    condition to reproduce since you'd have to be really low on memory, but from
    studying the contexts in which it is called, I think this function should be
    returning a negative errno, and the -1 will be seen as an EPERM. Switching it
    to -ENOMEM makes sense.

    Second, the store_cmap function which is called for writes to
    /sys/class/graphics/fb0/color_map returns 0 for success, but it should be
    returning the count of bytes written since its return value ends up in
    userspace as the result of the write() syscall.

    Third, radeonfb returns 1 instead of a negative errno when FBIOPUTCMAP is
    called with an oversized colormap. This is seen in userspace as a return
    value of 1 from the ioctl() syscall with errno left unchanged. A more
    useful return value would be -EINVAL.

    Signed-off-by: Alan Curry
    Cc: "Antonino A. Daplas"
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Curry
     

11 Jan, 2006

3 commits


09 Nov, 2005

1 commit

  • Add ability to set rotation via sysfs. The attributes are located in
    /sys/class/graphics/fb[n] and accepts 0 - unrotated; 1 - clockwise; 2 - upside
    down; 3 - counterclockwise.

    The attributes are:

    con_rotate (r/w) - set rotation of the active console
    con_rotate_all (w) - set rotation of all consoles
    rotate (r/w) - set rotation of the framebuffer, if supported.
    Currently, none of the drivers support this.

    This is probably temporary, since con_rotate and con_rotate_all are
    console-specific and has no business being under the fb device. However,
    until the console layer acquires it's own sysfs class, these attributes will
    temporarily reside here.

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     

25 Oct, 2005

1 commit


01 Aug, 2005

1 commit


29 Jul, 2005

1 commit


28 Jul, 2005

1 commit

  • Color maps have up to 256 entries. 4096/256 allows for 16 characters per
    line. The format for a cmap entry is "%02x%c%4x%4x%4x\n" %02x entry %c
    transp %4x red %4x blue %4x green

    You can read the color_map with cat fb0/color_map.

    Signed-off-by: Jon Smirl
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jon Smirl
     

08 Jul, 2005

1 commit


26 Jun, 2005

1 commit


14 Jun, 2005

1 commit


06 May, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds