FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2017
    Location
    USA
    Posts
    20

    Angry Samsung Galaxy Book - No backlight control (i915), No audio (snd_hda_intel)

    Hi,

    I've been having a hell of a time with my new tablet / laptop. It's got an AMOLED display that will not dim with the intel_backlight / xbacklight / keyboard -+ keys.

    I've also noticed audio isn't working, not sure if that's related.

    For others that have this product, you can get the built-in WiFi working by building your own kernel with ath/regd_common patches based on this thread.
    You will need a new board-2.bin file from here, copied to /usr/lib/firmware/ath10k/QCA6174/hw3.0/board-2.bin
    This gets cleared if you dnf update linux-firmware, so I recommend you git clone https://github.com/kvalo/ath10k-firmware somewhere safe and copy the board-2.bin again if it breaks.


    Things I've tried:
    - building kernel with AMOLED drivers (I'm not sure how to lspci/lsusb to see what I need, but I'm guessing i915 should handle it)
    - i915.modeset=0 and nomodeset boot params: both freeze at GDM launch and flicker so much I can barely get to, and can't type at the tty[0-6]
    - acpi_backlight=[vendor|native|none] boot params : doesn't do anything except mess with /sys/class/backlight

    dmesg messages of interest:

    Code:
    [    1.625156] efifb: framebuffer at 0xc0000000, using 12152k, total 12150k
    
    [    1.636615] fb0: EFI VGA frame buffer device
    
    [    2.807107] fb: switching to inteldrmfb from EFI VGA
    
    [    2.815536] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
    
    [    4.224624] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
    
    
    [   28.025809] tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command/response buffer. [mem 0xfed40000-0xfed4087f flags 0x201] vs fed40080 f80
    [   28.025815] tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command/response buffer. [mem 0xfed40000-0xfed4087f flags 0x201] vs fed40080 f80
    
    
    [   28.371639] input: PC Speaker as /devices/platform/pcspkr/input/input16
    [   28.453939] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [   28.454352] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [   28.491917] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
    [   28.491920] cfg80211: failed to load regulatory.db
    Code:
    $ tree /sys/class/backlight/
    
    /sys/class/backlight/
    └── intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight

    does anyone have any experience with similar backlight issues or gotten Linux working with an AMOLED display?


    Creative USB sound and built-in microphone is working, but built-in speakers and headphone jack are not.

    Code:
    # inxi -Fxmz
    
    System:    Host: flux Kernel: 4.14.0-acpi+ x86_64 bits: 64 gcc: 7.2.1 Console: tty 2
               Distro: Fedora release 27 (Twenty Seven)
    Machine:   Device: un-determined System: SAMSUNG product: Galaxy Book 12 v: P02HAC serial: <filter>
               Mobo: SAMSUNG model: SM-W720NTKBXAR v: SGL8766A2F-C01-G001-S0001+10.0.14393 serial: <filter>
               UEFI: American Megatrends v: P02HAC.004.170626.WY.1442 date: 06/26/2017
    Battery    BAT1: charge: 38.9 Wh 99.0% condition: 39.3/39.0 Wh (101%) model: SAMSUNG SR Real status: N/A
    CPU:       Dual core Intel Core i5-7200U (-HT-MCP-) arch: Kaby Lake rev.9 cache: 3072 KB
               flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10848
               clock speeds: max: 3100 MHz 1: 3100 MHz 2: 3100 MHz 3: 3100 MHz 4: 3100 MHz
    Memory:    Array-1 capacity: 4 GB devices: 2 EC: None
               Device-1: ChannelA-DIMM0 size: 2 GB speed: 1867 MT/s type: LPDDR3 part: K3QF3F30BM-AGCF
               Device-2: ChannelB-DIMM0 size: 2 GB speed: 1867 MT/s type: LPDDR3 part: K3QF3F30BM-AGCF
    Graphics:  Card: Intel HD Graphics 620 bus-ID: 00:02.0
               Display Server: X.org 1.19.5 driver: intel tty size: 107x55 Advanced Data: N/A for root
    Audio:     Card-1 Intel Sunrise Point-LP HD Audio driver: snd_hda_intel bus-ID: 00:1f.3
               Card-2 Creative driver: USB Audio usb-ID: 001-012
               Sound: Advanced Linux Sound Architecture v: k4.14.0-acpi+
    Network:   Card-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
               driver: ath10k_pci bus-ID: 01:00.0
               IF: wlp1s0 state: up mac: <filter>
               Card-2: Realtek RTL8153 Gigabit Ethernet Adapter driver: r8152 v: v1.09.9 usb-ID: 002-007
               IF: enp0s20f0u1u1 state: N/A speed: N/A duplex: N/A mac: N/A
               Card-3:  Realtek RTL8153 Gigabit Ethernet Adapter driver: r8152 v: v1.09.9 usb-ID: 002-003
               IF: enp0s20f0u1u1 state: N/A speed: N/A duplex: N/A mac: N/A
               Card-4:  Qualcomm Atheros usb-ID: 001-005
               IF: null-if-id state: N/A speed: N/A duplex: N/A mac: N/A
    Drives:    HDD Total Size: 128.0GB (30.7% used)
               ID-1: /dev/sda model: LITEON_CV3 size: 128.0GB temp: 50C
    Partition: ID-1: / size: 99G used: 31G (33%) fs: ext4 dev: /dev/sda2
               ID-2: swap-1 size: 7.28GB used: 0.00GB (0%) fs: swap dev: /dev/sda3
    RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
    Sensors:   System Temperatures: cpu: 55.0C mobo: 43.0C
               Fan Speeds (in rpm): cpu: N/A
    Info:      Processes: 252 Uptime: 18 min Memory: 1807.8/3847.5MB
               Init: systemd runlevel: 5 Gcc sys: 7.2.1 Client: Shell (sudo) inxi: 2.3.43
    Last edited by kabeero; 4th December 2017 at 06:36 AM.

  2. #2
    Join Date
    Nov 2017
    Location
    USA
    Posts
    20
    I'm still working on the audio and ACPI backlight, but for now, I have a temporary fix to not burn in the screen.

    for backlight, you can run an X11 window manager or use GNOME 3 and disable Wayland:
    Code:
    /etc/gdm/custom.conf:
    
    ...
    [daemon]
    # Uncoment the line below to force the login screen to use Xorg
    WaylandEnable=false
    ...

    now you can use xrandr in GNOME, so create the script:
    Code:
    /usr/local/bin/brightness:
    
    #!/usr/bin/bash
    if [ -n "$1" ]
    then
       xrandr --output eDP-1 --brightness $1
    else
       echo $(xrandr --verbose | grep Brightness | awk '{print $2}')
    fi

    call it with (don't forget to chmod +x and send 0-1):
    Code:
    $ brightness 0.4


    I disassembled the DSDT and fixed some iasl compile errors and tried to make it pass fwts, but that's taking a lot of time. I'm not sure that's the correct approach either, it seems the backlight methods in ACPI are syntactically correct, but the UEFI vendor has written some controls to use _WDG/WMI calls so a kernel module may need to be written. it seems this model was only designed to be compatible with Windows.


    the WiFi was working fine until yesterday, but it broke with a linux-firmware update. I've updated the original post with information about the board files for ath10k


    I am still working on audio stuff


    For the backlight, I think it's gonna be a while until someone writes a WMI-compliant kernel module to support communicating with the UEFI DSDT _WDG controls. the _BCL methods looked fine to me, but they don't seem to control anything. I think the vendor intended Windows to be the only OS this machine ran.
    Last edited by kabeero; 4th December 2017 at 10:20 PM.

  3. #3
    Join Date
    Jul 2010
    Location
    western PA
    Posts
    83

    Re: Samsung Galaxy Book - No backlight control (i915), No audio (snd_hda_intel)

    I'm reading this thread with great interest.

    I have a need to do a Qt application on a Galaxy Book and I really want to avoid targetting the windoze environment because even using Qt, I'm not a windoze programmer and cannot afford months of win32 development time to integrate with the peripheral hardware. My app will be full screen with no window manager running, so I need to avoid anything having to do with gnome. Is wayland used by default for X11-clients that are not using any desktop manager at all? Something I'm not at all clear on is how the wayland compositor is coupled with the F27 X server or desktop managers/environments.

    Rather than hijack your thread I'll be posting questions in another thread. Please share, if you have knowledge that is beneficial.

    Thanks

  4. #4
    Join Date
    Nov 2017
    Location
    USA
    Posts
    20

    Re: Samsung Galaxy Book - No backlight control (i915), No audio (snd_hda_intel)

    hmm but Qt has great cross compatibility, why not develop in Linux then recompile in Windows? I did similar from Linux -> OSX and it worked well

    if you don't use a display/login manager you would have to intentionally launch `wayland` from xinit. so if you're using `startx` or `X` you should be fine.

    my understanding is Wayland is used only by window managers that use its core, so far I've seen it used by GNOME 3 and swaywm.

    I used the default fc27 gdm display manager and launched i3wm no problem, I had X/xrandr access without any tweaks but I preferred to use GNOME3 for its builtin hotkeys and sleep/hibernate functions.

    these solutions would give you granular control and make sure wayland isn't launched:
    https://wiki.gentoo.org/wiki/X_without_Display_Manager

  5. #5
    Join Date
    Jul 2010
    Location
    western PA
    Posts
    83

    Re: Samsung Galaxy Book - No backlight control (i915), No audio (snd_hda_intel)

    Quote Originally Posted by kabeero
    hmm but Qt has great cross compatibility, why not develop in Linux then recompile in Windows? I did similar from Linux -> OSX and it worked well

    if you don't use a display/login manager you would have to intentionally launch `wayland` from xinit. so if you're using `startx` or `X` you should be fine.

    my understanding is Wayland is used only by window managers that use its core, so far I've seen it used by GNOME 3 and swaywm.

    I used the default fc27 gdm display manager and launched i3wm no problem, I had X/xrandr access without any tweaks but I preferred to use GNOME3 for its builtin hotkeys and sleep/hibernate functions.

    these solutions would give you granular control and make sure wayland isn't launched:
    https://wiki.gentoo.org/wiki/X_without_Display_Manager

    QT compatibility - yes. GUI level. My concern is having to do a lot of win32 API stuff to talk with the peripherals and I'm a POSIX programmer, not a windoze programmer. I'm also under the gun with overly optimistict schedule..Go figure, right? In any case I'm going to develop on linux as I won't be able to show any progress if I'm fighting windows issues from the start.

    Right, no display manager...probably start X server and autologin upon bootup...think of it as an embedded device, which it is. (God, I miss inittab)

    I'll look at your link. Thanks.

    Do you know if the Galaxy Book supports booting directly from the micro-sd slot?

  6. #6
    Join Date
    Nov 2017
    Location
    USA
    Posts
    20

    Re: Samsung Galaxy Book - No backlight control (i915), No audio (snd_hda_intel)

    Quote Originally Posted by tempest766
    QT compatibility - yes. GUI level. My concern is having to do a lot of win32 API stuff to talk with the peripherals and I'm a POSIX programmer, not a windoze programmer. I'm also under the gun with overly optimistict schedule..Go figure, right? In any case I'm going to develop on linux as I won't be able to show any progress if I'm fighting windows issues from the start.
    ah, I figured that was the case but I suggested it anyways... good luck lol

    Quote Originally Posted by tempest766
    Do you know if the Galaxy Book supports booting directly from the micro-sd slot?
    replied in your other thread

Similar Threads

  1. Samsung Galaxy access
    By glennzo in forum Fedora Focus
    Replies: 7
    Last Post: 16th August 2017, 11:15 AM
  2. F23: mount Samsung Galaxy S5
    By MikeBerger in forum Using Fedora
    Replies: 5
    Last Post: 16th December 2015, 03:44 AM
  3. Fedora 17 & Galaxy Samsung S3
    By jnbrunet in forum Guides & Solutions (Not For Questions)
    Replies: 13
    Last Post: 8th March 2014, 01:50 PM
  4. Re: Fedora 17 & Galaxy Samsung S3
    By Nosoupp in forum Reviews, Rants & Things That Make You Scream
    Replies: 5
    Last Post: 7th March 2013, 08:11 PM
  5. Samsung Galaxy S.
    By sepoto in forum Hardware & Laptops
    Replies: 1
    Last Post: 2nd September 2011, 04:25 PM

Tags for this Thread

Posting Permissions

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