Closed youling257 closed 7 years ago
have not tested, did not even install a gui last time i run linux.. Worse case scenario you adjust it with xset.
The i915 driver needs a patch to make this work. I have it and I'll post it up next time I crack open the tablet.
please post patch
http://home.ix.netcom.com/~jjingber/0007-intel_baytrail_backlight.patch
i915 kernel module needs i915.force_backlight_pmic=1
i915.force_backlight_pmic=1,can't adjust screen brightness,my tablet z3735f . other z3735f test it ? only use this patch ?.config need xxxx=y or m ?
@jharrison022 I just wanted to say thanks for the patch. I just used this on 4.8 rc7 from git and it works beautifully on my Asus T100TA.
can anyone with a flexx10 confirm that it works and with which kernel revision?
https://bugs.freedesktop.org/show_bug.cgi?id=85977 https://bugs.freedesktop.org/show_bug.cgi?id=96571 https://bugs.freedesktop.org/show_bug.cgi?id=90075 pwm backlight
i don't know their discussion results
I think it's safe to say the screen on the Flexx 9 and 10-style tablets are very different. This patch works over here.
I think that's really the only difference in these tables, expect for the Flexx 9's sh*tty firmware (gimped VBT) and size of SSD.
I'm not good at English,I can't understand their discussion for pwm backlight, the problem is [drm:pwm_setup_backlight [i915]] ERROR Failed to own the pwm chip
@jharison22 so it works with 10 and not with 9
It works on the 9, at least. No idea about the 10.
Try this patches: https://www.tinc-vpn.org/pipermail/click/2016-October/000347.html
Build options:
CONFIG_PWM=y
CONFIG_PWM_CRC=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_I2C_DESIGNWARE_PCI=y
CONFIG_INTEL_SOC_PMIC=y
CONFIG_DRM_I915=m
CONFIG_PWM_LPSS=y
CONFIG_PWM_LPSS_PCI=y
CONFIG_PWM_LPSS_PLATFORM=y
CONFIG_X86_INTEL_LPSS=y
https://bugs.freedesktop.org/show_bug.cgi?id=96571 ,do you read this bug ? @RussianNeuroMancer
Yes. @youling257, do you refer to some particular comment?
@RussianNeuroMancer ,https://www.tinc-vpn.org/pipermail/click/2016-October/000347.html ,he edit DSDT,i need know DSDT patch .
DSDT patch,@zefie ,half year ago,get backlight work,https://files.persona.cc/linux/intel_baytrail_soc/nextbook%2010.1/android/android_x86_010c.txt
Kernel Source: http://github.com/zefie/nxt_andx86_kernel Post-Build Binaries: http://github.com/zefie/nxt_and_x86
@RussianNeuroMancer ,https://github.com/zefie/nxt_andx86_kernel/commit/121736b5fc95c2325c13ff5c75a3cd980192ef56 ,https://github.com/zefie/nxt_and_x86/blob/x86/files/generic/boot/boot/dsdt/dsdt_changes.patch
DSDT patch,@@ -433,9 +433,10 @@ ,@@ -13764,10 +13765,10 @@,@@ -13731,10 +13732,10 @@,can make Volume Buttons work ;don't use DSDT patch,use this patch,https://patchwork.kernel.org/patch/6118791 ,Volume Buttons also work . two method make Volume Buttons work .
so,if @@ -9599,31 +9600,7 @@ and @@ -9656,32 +9633,7 @@ is for backlight,but my dsdt can't patch @@ -9599,31 +9600,7 @@ ,@@ -9656,32 +9633,7 @@ ,get dsdt.dsl.rej file .
@youling257
he edit DSDT
Yep, but as I understand most BYT devices doesn't need DSDT changes to get backlight work. This is wrong assumption?
don't use DSDT patch,use this patch,https://patchwork.kernel.org/patch/6118791
This patch is old, why it's not merged into upstream? Is there bugreport about this?
two method make Volume Buttons work
One method is this patch https://patchwork.kernel.org/patch/6118791 and another? DSDT edit or something different?
@RussianNeuroMancer , most BYT devices , what BYT devices ? z3735f [drm:pwm_setup_backlight [i915]] ERROR Failed to own the pwm chip .
@youling257
what BYT devices
BayTrail tablets/laptops/transformers
ERROR Failed to own the pwm chip .
Check this: https://drive.google.com/drive/folders/0B_uxdqSfzNGwOG1UUEh2ckM4LVU
@RussianNeuroMancer , i don't will go to test his kernel and modules , i must solved z3735f android x86 backlight problem .
https://drive.google.com/drive/folders/0B_uxdqSfzNGwTjF2M2w2VDBzb0k?usp=sharing ,“BUT for make this set of patches work, I had to modify my DSDT table” @RussianNeuroMancer
@youling257
i don't will go to test his kernel and modules
Okay, maybe someone else will test this approach.
@RussianNeuroMancer ,please you tell me,i test his deb file,has what use ? i need more patch,his https://drive.google.com/drive/folders/0B_uxdqSfzNGwTjF2M2w2VDBzb0k?usp=sharing ,no use,i recompile my kernel and modules use these three patch,backlight doesn't work .
thanks for zefie DSDT patch,https://github.com/zefie/nxt_andx86_kernel/commit/121736b5fc95c2325c13ff5c75a3cd980192ef56 https://github.com/zefie/nxt_and_x86/blob/x86/files/generic/boot/boot/dsdt/dsdt_changes.patch Android x86 backlight can work,brightness control can work .
@youling257
Just to confirm:
What your device? Nextbook Flexx 10.1"?
let me tell you,here is z3735f problem,i only care z3735f on Android x86 problem . @RussianNeuroMancer
@youling257
i only care z3735f on Android x86 problem
As I understand you solved it, right? I want to clearly understand the way you do this. This is why I asking you this questions from my previous comment. This information could be very helpful for other people.
“@RussianNeuroMancer ,zefie/nxt_andx86_kernel@121736b ,https://github.com/zefie/nxt_and_x86/blob/x86/files/generic/boot/boot/dsdt/dsdt_changes.patch
DSDT patch,@@ -433,9 +433,10 @@ ,@@ -13764,10 +13765,10 @@,@@ -13731,10 +13732,10 @@,can make Volume Buttons work ;don't use DSDT patch,use this patch,https://patchwork.kernel.org/patch/6118791 ,Volume Buttons also work . two method make Volume Buttons work .
so,if @@ -9599,31 +9600,7 @@ and @@ -9656,32 +9633,7 @@ is for backlight,but my dsdt can't patch @@ -9599,31 +9600,7 @@ ,@@ -9656,32 +9633,7 @@ ,get dsdt.dsl.rej file .”
yes,@@ -9599,31 +9600,7 @@ and @@ -9656,32 +9633,7 @@ is for backlight ,i patch my dsdt.dsl success ,compile dsdt.hex into kernel ,get backlight work .
please, leave bugs open until proper documentation is provided.
(+ confirmation)
I tested the patch for kernel 4.8.3 with modified DSDT compiled in on Teclast X80h. The error message (failed to own pwm chip) disappeared and "xrandr --output DSI-1 --off" did turn off/on the backlight despite putting X into black screen. Backlight control still doesn't work. The only thing works is turninig backlight on and off. However, I still get black screen everywhere. I can bypass this black screen issue with i915.fastboot=1 parameter. But the screen turns black when I "restart X/xrandr rotate/xrandr on/off". So, my screen only works at first login(logout also causes black screen) and I cannot rotate it.
CONFIG_PWM=y CONFIG_PWM_CRC=y CONFIG_I2C_DESIGNWARE_PLATFORM=y CONFIG_I2C_DESIGNWARE_PCI=y CONFIG_INTEL_SOC_PMIC=y CONFIG_DRM_I915=m CONFIG_PWM_LPSS=y CONFIG_PWM_LPSS_PCI=y CONFIG_PWM_LPSS_PLATFORM=y CONFIG_X86_INTEL_LPSS=y
2016年12月16日 上午12:18,"SuIông N." notifications@github.com写道:
I tested the patch for kernel 4.8.3 with modified DSDT compiled in on Teclast X80h. The error message (failed to own pwm chip) disappeared and "xrandr --output DSI-1 --off" did turn off/on the backlight despite putting X into black screen. Backlight control still doesn't work. The only thing works is turninig backlight on and off. However, I still get black screen everywhere. I can bypass this black screen issue with i915.fastboot=1 parameter. But the screen turns black when I "restart X/xrandr rotate/xrandr on/off". So, my screen only works at first login(logout also causes black screen) and I cannot rotate it.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/burzumishi/linux-baytrail-flexx10/issues/15#issuecomment-267369900, or mute the thread https://github.com/notifications/unsubscribe-auth/APjKVHgVQhm-TqaGG4jZqb0mNAU41u0Mks5rIWhqgaJpZM4J0kUq .
DSDT patch,such as http://pastebin.com/ZKfJNySj detail https://plus.google.com/116937366969544577777/posts/fc7y2oAirh5
i compile include/dsdt.hex into kernel,# CONFIG_STANDALONE is not set CONFIG_ACPI_CUSTOM_DSDT_FILE="dsdt.hex" CONFIG_ACPI_CUSTOM_DSDT=y
yes, these are exactly what I did. I do have these kernel config parameter the same as above and compiled in the dsdt.hex.
only use these three patch,https://drive.google.com/drive/folders/0B_uxdqSfzNGwTjF2M2w2VDBzb0k should be drm:pwm_setup_backlight [i915]] ERROR Failed to own the pwm chip: pwm_lpss . if again edit dsdt,should get backlight work .
ok, with more testing, backlight is actually working despite showing a black screen. Booting with i915.fastboot=1 gets me a functioning X (without backlight support). Booting without that parameter gets me a black screen with working backlight support.
Hi,
I can't adjust brightness during boot sequence but I can adjust brightness when the desktop appears (with FN + fonction button for brightness). Then I think I don't need the patch ? Right ? To adjust the brightness during boot sequence I use a script that I applied with initramfs.
do not even have a keyboard for my device......
If you want the how-to to adjust brightness at boot (with the help of initramfs), tell me I will post here. ;-)
if you say xrandr script ,i don't know it . android not support xrandr . xrandr adjust gamma,isn't brightness ,i can use android app adjust gamma . the adjust brightness by pwm control from DSDT . bay trail/cherry trail,LPSS based device or CRC PMIC.
2016-12-24 21:17 GMT+08:00 Tuxman2 notifications@github.com:
Hi,
I can't adjust brightness during boot sequence but I can adjust brightness when the desktop appears (with FN + fonction button for brightness). Then I think I don't need the patch ? Right ? To adjust the brightness during boot sequence I use a script that I applied with initramfs.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/burzumishi/linux-baytrail-flexx10/issues/15#issuecomment-269084031, or mute the thread https://github.com/notifications/unsubscribe-auth/APjKVAu66dr4hO0MOebavifh8mukDVPnks5rLRtPgaJpZM4J0kUq .
I don't use xrandr script but another tip. The tip I use is to adjust the brightness after boot. Here is the tip:
#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
#Start of treatment to adjust brightness for Intel card
echo x > /sys/class/backlight/intel_backlight/brightness
exit 0
Note: replace x with the value you need.
You can check your current value with that command: cat /sys/class/backlight/intel_backlight/actual_brightness
Modify your brightness with the brightness control bar or with FN+fonction button. Recheck the value with the command above. Note that one who will be defined in the code above (echo yourvalue > /sys/class/backlight/intel_backlight/brightness).
chmod a+rx /etc/initramfs-tools/scripts/init-premount/local-backlight-brightness
update-initramfs -u -k all (for all the kernels available).
Note: Here is the source I used: http://unix.stackexchange.com/questions/117101/how-to-set-laptop-screen-brightness-just-after-boot-with-full-disk-encryption
If your dmesg no this , pwm_setup_backlight [i915]] ERROR Failed , the correct method to solved it I don't like opportunistic
4.10 kernel,if patch intel_panel.c and intel_drv.h ,can't compile ,http://pastebin.com/AwDqbfZC ;4.8 and 4.9 ,no problem,backlight control can work .
4.9 kernel and 4.10 kernel ,
root@x86:/ # dmesg | grep silead [ 14.031463] silead_ts i2c-MSSL1680:00: Silead chip ID: 0x80360000 [ 14.075816] silead_ts i2c-MSSL1680:00: Registers clear error -11 [ 14.087734] silead_ts: probe of i2c-MSSL1680:00 failed with error -11 [ 180.627479] silead_ts i2c-MSSL1680:00: Silead chip ID: 0x80360000 [ 180.628877] silead_ts i2c-MSSL1680:00: Registers clear error -11 [ 180.638825] silead_ts: probe of i2c-MSSL1680:00 failed with error -11 root@x86:/ #
[ 13.806770] gslx680 i2c-MSSL1680:00: gsl_ts_probe: got a device named MSSL1680:00 at address 0x40, IRQ 68, flags 0x0 [ 13.914450] gslx680 i2c-MSSL1680:00: gsl_ts_reset_chip: gsl_ts_write 1 fail! [ 13.920399] gslx680 i2c-MSSL1680:00: gsl_ts_probe: chip reset failed [ 13.947868] gslx680: probe of i2c-MSSL1680:00 failed with error -11
shit,I have no necessary to follow up ,the 4.8 kernel is perfect and exclusively .
What patches are required for backlight to work ?
adjust screen brightness,really can work ?