Results 1 to 9 of 9

Thread: Leap works on my dell inspiron laptop but I can't adjust thebrightness...

  1. #1
    JtWdyP NNTP User

    Default Leap works on my dell inspiron laptop but I can't adjust thebrightness...

    I just successfully installed leap on my Dell inspiron 15 laptop using the 64bit net installer.
    I've managed to almost completely recreate my customized openbox environment. But
    there are a couple things I can't quite get working right. The most important one of
    those is the brightness of my laptop's screen. I boot to virtual condole And then run
    startx when I'm ready for the GUI...

    When I boot, I see the boot messages scroll by to fast to read, and for more than
    half the boot process the boot messages look normal. But then the display suddenly
    gets so dim I have a hard time reading it. This happens with Mageia Linux too, but
    at least with Mageia I can restore the brightness by holding the "Fn" key and tapping
    the F12 key. But with Opensuse leap "Fn" + "F12" doesn't do it...

    When I run startx I can see the GUI screens a little better. I think I must have
    found a solution to this for an earlier release, but I forgot what I did. {it's been
    a while since I had to, because the fix {if there was one} survived being upgraded to
    the next release via the zypper dup method.

    But since I decided to do a clean install for leap, whatever I'd done to fix it is no
    longer on my hard drive...

    I have had one instance while configuring my openbox environment when the brightness
    was spontaneously restored. But I haven't a clue what I did. I had been editing the
    keybindings in my ~/.config/openbox/rc.xml testing the changes, and using zypper to
    install some missing applications and or finding alternatives to set the relevant
    keybindings to. I broke for supper. And then noticed the screen was brighter.
    But upon reboot it dimmed down again a few seconds before I get a login prompt.

    Does anyone have any suggestions??

    --
    JtWdyP


  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,395
    Blog Entries
    1

    Default Re: Leap works on my dell inspiron laptop but I can't adjust thebrightness...

    I don't have this hardware, but I wonder if the 'dell-laptop' and 'dell-wmi' drivers are needed for WMI hotkey support perhaps? Are they loaded?

    FWIW
    http://askubuntu.com/questions/41008...rnel-module-do
    http://unix.stackexchange.com/questi...on-not-working

  3. #3

    Default Re: Leap works on my dell inspiron laptop but I can't adjustthebrightness...


    It would appear that on Jun 13, deano ferrari did say:

    > I don't have this hardware, but I wonder if the 'dell-laptop' and
    > 'dell-wmi' drivers are needed for WMI hotkey support perhaps? Are they
    > loaded?
    >
    > FWIW
    > http://tinyurl.com/h99kjh8
    > http://tinyurl.com/llv5uxe


    Since I had no clue that such "drivers" existed, I'd say probably not...

    Those links both seam to be about Debian based systems. And sound like I'd have to
    roll my own kernel... ouch. Are there available "Modules" for Opensuse that I could
    load from an xorg.conf or something???

    I just want to get this and a problem with an openbox autostart scripts {that used to
    use feh to set a different background image for each of my 12 "desktop areas"} solved
    so I can get back to the book I'm writing...

    But I'll have to work on this tomorrow because today I need to get my car inspected
    and go visit my daughter {who lives about 80 miles away}... Speaking of which, gotta
    go.

    bye for now

    --
    JtWdyP


  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,395
    Blog Entries
    1

    Default Re: Leap works on my dell inspiron laptop but I can't adjustthebrightness...

    Quote Originally Posted by jtwdyp View Post
    Since I had no clue that such "drivers" existed, I'd say probably not...
    I suspected not, but then I don't have Dell hardware, so never needed them. However, many laptops are supported by various vendor-specific WMI drivers, and those two drivers seem to be mentioned a lot when discussing Dell laptops. I don't know whether they support your model or not.

    Those links both seam to be about Debian based systems. And sound like I'd have to
    roll my own kernel... ouch. Are there available "Modules" for Opensuse that I could
    load from an xorg.conf or something???
    Debian (or otherwise) has nothing to do with it. They are 'in tree' kernel modules, and are normally compiled as art of the kernel or as modules. In the case of openSUSE, they're compiled as modules. So you can get info about them with...
    Code:
    modinfo dell_wmi
    Code:
    modinfo dell_laptop
    Check if they're already loaded...
    Code:
    lsmod | grep dell

  5. #5

    Default Re: Leap works on my dell inspiron laptop but I can't adjustthebrightness...


    It would appear that on Jun 13, deano ferrari did say:

    > jtwdyp;2781953 Wrote:
    > > Since I had no clue that such "drivers" existed, I'd say probably not...

    > I suspected not, but then I don't have Dell hardware, so never needed
    > them. However, many laptops are supported by various vendor-specific WMI
    > drivers, and those two drivers seem to be mentioned a lot when
    > discussing Dell laptops. I don't know whether they support your model or
    > not.
    >
    > > Those links both seam to be about Debian based systems. And sound like
    > > I'd have to
    > > roll my own kernel... ouch. Are there available "Modules" for Opensuse
    > > that I could
    > > load from an xorg.conf or something???

    > Debian (or otherwise) has nothing to do with it. They are 'in tree'
    > kernel modules, and are normally compiled as art of the kernel or as
    > modules. In the case of openSUSE, they're compiled as modules. So you
    > can get info about them with...
    >
    > Code:
    > --------------------
    > modinfo dell_wmi
    > --------------------
    >
    >
    > Code:
    > --------------------
    > modinfo dell_laptop
    > --------------------
    >
    > Check if they're already loaded...
    >
    > Code:
    > --------------------
    > lsmod | grep dell
    > --------------------


    Oh oh?!?
    Quote Originally Posted by My root shell sayeth
    Code:
    ~
    UnderTree=-> lsmod | grep dell
    dell_led               16384  1
    dell_laptop            24576  0
    rfkill                 28672  5 cfg80211,bluetooth,dell_laptop
    dell_wmi               16384  0
    sparse_keymap          16384  1 dell_wmi
    dcdbas                 16384  1 dell_laptop
    wmi                    20480  2 dell_led,dell_wmi
    ~
    UnderTree=->
    {sigh} But if their loaded already then that can't be it. {expletive deleted}

    On the other hand one of those links talked about a root kludge of
    Quote Originally Posted by http://tinyurl.com/llv5uxe said:
    Code:
    echo 35 > /sys/class/backlight/acpi_video0/brightness
    To me the interesting part was:

    Code:
    /sys/class/backlight/acpi_video0/brightness
    So Since I was in the 'easier to see' Mageia Linux when I read this I thought I'd
    find out what it looked like in Mageia. So first I used the other fn key, 'the F11'
    to re-dim the laptop. And peeked at it with something like:
    Code:
    less /sys/class/backlight/acpi_video0/brightness
    Which said exactly "100"
    Then I used 'fn'+'F12' to fix the brightness again and peeked again.
    Again I got exactly "100"

    So the working control had no effect on that value?!?

    Then when I finished with my email I rebooted into Leap and peeked:

    Quote Originally Posted by My root shell sayeth
    Code:
    ~
    UnderTree=-> ls /sys/class/backlight/acpi_video0/brightness
    ls: cannot access /sys/class/backlight/acpi_video0/brightness: No such file or directory
    ~
    UnderTree=->
    So I back tracked a bit.

    Quote Originally Posted by My root shell sayeth
    Code:
    /sys/class/backlight
    UnderTree=-> ls
    intel_backlight
    /sys/class/backlight
    UnderTree=-> ls intel_backlight
    actual_brightness  bl_power  brightness  device  max_brightness  power  subsystem  type  uevent
    /sys/class/backlight
    UnderTree=-> cd intel_backlight
    /sys/class/backlight/intel_backlight
    UnderTree=-> cat actual_brightness
    3
    /sys/class/backlight/intel_backlight
    UnderTree=-> cat bl_power
    0
    /sys/class/backlight/intel_backlight
    UnderTree=-> cat brightness
    937
    /sys/class/backlight/intel_backlight
    UnderTree=-> cat device
    cat: device: Is a directory
    /sys/class/backlight/intel_backlight
    UnderTree=-> ls device
    device  dpms  edid  enabled  i2c-6  intel_backlight  modes  power  status  subsystem  uevent
    /sys/class/backlight/intel_backlight
    UnderTree=-> cat max_brightness
    937
    /sys/class/backlight/intel_backlight
    UnderTree=-> cat power
    cat: power: Is a directory
    /sys/class/backlight/intel_backlight
    UnderTree=-> ls power
    async                 control              runtime_active_time  runtime_status          runtime_usage
    autosuspend_delay_ms  runtime_active_kids  runtime_enabled      runtime_suspended_time
    /sys/class/backlight/intel_backlight
    UnderTree=-> cat subsystem
    cat: subsystem: Is a directory
    /sys/class/backlight/intel_backlight
    UnderTree=-> ls subsystem
    intel_backlight
    /sys/class/backlight/intel_backlight
    UnderTree=-> ls subsystem/intel_backlight
    actual_brightness  bl_power  brightness  device  max_brightness  power  subsystem  type  uevent
    /sys/class/backlight/intel_backlight
    UnderTree=-> cat type
    raw
    /sys/class/backlight/intel_backlight
    UnderTree=-> cat uevent
    /sys/class/backlight/intel_backlight
    UnderTree=->
    Is it just me, or do those values look wrong to anybody who has a clue what they
    should be?

    So I wonders if using a root shell to blindly poke the wrong values into any of those
    could damage something???


    --
    JtWdyP


  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,395
    Blog Entries
    1

    Default Re: Leap works on my dell inspiron laptop but I can't adjust thebrightness...

    A lot will come down to kernel releases....so you might want to tell which kernel is in use in your Mageia install. Also, openSUSE version? Maybe a later kernel will help here.

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,395
    Blog Entries
    1

    Default Re: Leap works on my dell inspiron laptop but I can't adjust thebrightness...

    There are a number of possible causes for backlight control issues. Some of the best diagnostic information is detailed in the following wiki pages. Although aimed at Ubuntu and Arch Linux, it is important to note that most of the information contained there is not distro-specific, so worth reading.

    https://wiki.ubuntu.com/Kernel/Debugging/Backlight
    https://wiki.archlinux.org/index.php/backlight

    Ultimately, if you can't resolve the backlight/brightness levels yourself, then a bug report will need to be submitted. Some trial and error may be required too.

    I did stumble across this page which discusses a brightness control issue with a Dell Inspiron and an Intel graphics chipset. It mentions a fix using an Xorg configuration snippet eg /etc/X11/xorg.conf.d/20-backlight.conf
    Code:
    Section "Device"
    Identifier  "card0"
    Driver      "intel" 
    Option      "Backlight"  "intel_backlight"
    BusID       "PCI:0:2:0"
    EndSection
    No promises that it will resolve your issue, but just wanted to share it in case it does. Hopefully, others who have this hardware can chime in.
    Last edited by deano_ferrari; 14-Jun-2016 at 01:16.

  8. #8

    Default Re: Leap works on my dell inspiron laptop but I can't adjustthebrightness...


    It would appear that on Jun 14, deano ferrari did say:

    > There are a number of possible causes for backlight control issues. Some
    > of the best diagnostic information is detailed in the following wiki
    > pages. Although aimed at Ubuntu and Arch Linux, it is important to note
    > that most of the information contained there is not distro-specific, so
    > worth reading.
    >
    > https://wiki.ubuntu.com/Kernel/Debugging/Backlight
    > https://wiki.archlinux.org/index.php/backlight


    With the help of those links I managed to get a kludge working...

    > Ultimately, if you can't resolve the backlight/brightness levels
    > yourself, then a bug report will need to be submitted. Some trial and
    > error may be required too.


    Well the root script I put in /usr/local/bin And initially call {via sudo} in /etc/rc.local
    seems to be working for me.

    I set it up in /etc/sudoers with:
    Code:
    %users ALL=(ALL) NOPASSWD:  /usr/local/bin/fixbacklight
    The simplistic script itself consists of:
    [quote="/usr/local/bin/fixbacklight"]
    [code]
    #!/bin/bash
    # note Max brightness is 937...
    case $1 in
    0*)blv=37;;
    1*)blv=137;;
    2*)blv=237;;
    3*)blv=337;;
    4*)blv=437;;
    5*)blv=537;;
    6*)blv=637;;
    7*)blv=737;;
    8*)blv=837;;
    9*)blv=937;;
    *)blv=737;;
    esac
    echo $blv > /sys/class/backlight/intel_backlight/brightness
    [code][quote]

    > I did stumble across this 'page'
    > (https://itsfoss.com/fix-brightness-ubuntu-1310/) which discusses a
    > brightness control issue with a Dell Inspiron and an Intel graphics
    > chipset. It mentions a fix using an Xorg configuration snippet eg
    > /etc/X11/xorg.conf.d/20-backlight.conf
    >
    > Code:
    > --------------------
    > Section "Device"Identifier "card0" Driver "intel"
    > Option "Backlight" "intel_backlight"
    > BusID "PCI:0:2:0" EndSection
    > --------------------
    >
    > No promises that it will resolve your issue, but just wanted to share it
    > in case it does. Hopefully, others who have this hardware can chime in.


    Yeah, I tried that before I bothered with the above script solution...
    the /etc/X11/xorg.conf.d/20-backlight.conf had no effect.

    But so far the kludge script is, so I'm done with this issue.

    --
    JtWdyP


  9. #9
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,395
    Blog Entries
    1

    Default Re: Leap works on my dell inspiron laptop but I can't adjust thebrightness...

    Glad the links were of value to you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •