- Thread: oled brightness issue on dell xps 15 7590
- oled brightness issue on dell xps 15 7590
- Re: oled brightness issue on dell xps 15 7590
- Re: oled brightness issue on dell xps 15 7590
- Re: oled brightness issue on dell xps 15 7590
- Re: oled brightness issue on dell xps 15 7590
- Re: oled brightness issue on dell xps 15 7590
- Re: oled brightness issue on dell xps 15 7590
- XPS 7590 #26
- Comments
- mich2k commented Apr 15, 2020
- agravelot commented Apr 19, 2020
- lfglopes commented Apr 19, 2020
- mich2k commented Apr 19, 2020 •
- Dell xps oled linux brightness
- How Well Does Ubuntu 20.04 Run on The Dell XPS 15 2020 (9570)
- What doesn’t work out the box, but can be fixed using this guide:
- What doesn’t work at all, and is my secret reason for making this guide in hope that people will suggest fixes for:
- Installing Ubuntu 20.04
- Installing Ubuntu alongside Windows 10
- Function keys won’t adjust screen brightness (OLED only)
- Enabling Hibernate
- Improving Battery Life
- CPU Fan Management
Thread: oled brightness issue on dell xps 15 7590
Thread Tools
Display
oled brightness issue on dell xps 15 7590
Hi all, I have a Dell Xps 15 7590 with a 4k Oled screen, Ubuntu 20.04 and kernel 5.4.
The brightness control doesn’t work, I’m not able to manage the brightness level using the keyboard buttons.
I know there is a script to insert to the terminal but it’s not practical, not the solution because i have to insert it at every system boot and everytime i wanna change the intensity, not easy.
My question is: is there a kernel that will fix this issue? A serious solution to this problem? I’m not talking about scripts but to a definitive solution to let people control the brightness using the keyboard like on windows. it’s almost 1 year that this laptop model is available on the market and the issue is still on.
Thanks, can someone help me?
Re: oled brightness issue on dell xps 15 7590
Please post the information regarding the script you found useful. Perhaps there’s a way to make it permanent.
Re: oled brightness issue on dell xps 15 7590
I just insert this everytime i have to change the brightness, but it’s not the solution, you waste a lot of time doing it in this way.
any real solution please?
Re: oled brightness issue on dell xps 15 7590
A similar problem was already detected in Windows and apparently «fixed» with the latest Windows 10 build: https://www.dell.com/community/XPS/X. k/td-p/7347429
It may work as well in Ubuntu in some upcoming kernel upgrade. Meanwhile you should try this: https://askubuntu.com/questions/1192. h-ubuntu-19-10
Re: oled brightness issue on dell xps 15 7590
I have a similar issue on a desktop monitor. I originally did the same as in Post #3 except from terminal I used, xgamma -gamma 0.6, tried adding to (Xubuntu) Settings>Session & Startup; however, it didn’t always take.
While trying to figure something out I discovered the brightness can be set (if you have Nvidia GFX) in Nvidia X Server Settings. To do so, find/locate Color Correction option where the controls for Brightness, Contrast, and Gamma may be adjusted. Adjust as necessary.
If you don’t have Nvidia X Server Settings, this may not help.
Update: This method does not seem to persist between next day boots.
Last edited by him610; May 9th, 2020 at 06:20 PM . Reason: more info
Re: oled brightness issue on dell xps 15 7590
Yes but I’d like to know if this issue is going to be fixed soon or not. its almost 1 year and is not acceptable that a person with an oled screen can’t easily manage the brightness. I mean, is there a future kernel release note where it tells about this issue and its solution?
Somewhere official to ask about it I mean.
Thanks again.
Re: oled brightness issue on dell xps 15 7590
We have no way of knowing when an issue will be fixed, I have seen bugs in some wifi drivers that have been round for more then ten years, you can contact the developers here possibly:
Источник
XPS 7590 #26
Comments
mich2k commented Apr 15, 2020
Hello
I never managed to make this working unluckyly
Tried on ubuntu 19.10 and now on 20.04 keep having this error
Am I doing something wrong or is not supported?
dell xps 7590 oled-uhd
sudo ./icc-brightness apply Traceback (most recent call last): File «icc-brightness», line 157, in main() File «icc-brightness», line 132, in main icc_brightness_apply() File «icc-brightness», line 108, in icc_brightness_apply icc_brightness(brightness, max_brightness) File «icc-brightness», line 83, in icc_brightness subprocess.run([ICC_BRIGHTNESS_GEN, icc_filepath, File «/usr/lib/python3.8/subprocess.py», line 489, in run with Popen(*popenargs, **kwargs) as process: File «/usr/lib/python3.8/subprocess.py», line 854, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File «/usr/lib/python3.8/subprocess.py», line 1702, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: ‘icc-brightness-gen’
when I type ./icc-brightness it shows the options*
The text was updated successfully, but these errors were encountered:
agravelot commented Apr 19, 2020
Did you run sudo make install ?
lfglopes commented Apr 19, 2020
To run ./icc-brighness standalone (as I understand you’re trying), you don’t need sudo. But you need to run make in order to compile icc-brightness-gen
mich2k commented Apr 19, 2020 •
Hello, sure I followed the guildeline:
mich@mich-XPS-15-7590:
/Scrivania/icc-brightness$ sudo make install mkdir -p /usr/local/bin/ install -m 755 icc-brightness-gen /usr/local/bin/ install -m 755 icc-brightness /usr/local/bin/ mkdir -p /usr/share/gnome/autostart/ install -m 644 icc-brightness.desktop /usr/share/gnome/autostart/ mich@mich-XPS-15-7590:
/Scrivania/icc-brightness$ icc-brightness apply Traceback (most recent call last): File «/usr/local/bin/icc-brightness», line 157, in main() File «/usr/local/bin/icc-brightness», line 132, in main icc_brightness_apply() File «/usr/local/bin/icc-brightness», line 108, in icc_brightness_apply icc_brightness(brightness, max_brightness) File «/usr/local/bin/icc-brightness», line 88, in icc_brightness subprocess.run([‘colormgr’, ‘device-add-profile’, File «/usr/lib/python3.8/subprocess.py», line 489, in run with Popen(*popenargs, **kwargs) as process: File «/usr/lib/python3.8/subprocess.py», line 854, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File «/usr/lib/python3.8/subprocess.py», line 1637, in _execute_child self.pid = _posixsubprocess.fork_exec( TypeError: expected str, bytes or os.PathLike object, not NoneType
/Scrivania/icc-brightness$ gcc -W -Wall icc-brightness-gen.c -l lcms2 -o icc-brightness-gen mich@mich-XPS-15-7590:
/Scrivania/icc-brightness$ ls icc-brightness icc-brightness.desktop icc-brightness-gen icc-brightness-gen.c LICENSE Makefile README.md mich@mich-XPS-15-7590:
/Scrivania/icc-brightness$ ./icc-brightness apply Traceback (most recent call last): File «./icc-brightness», line 157, in main() File «./icc-brightness», line 132, in main icc_brightness_apply() File «./icc-brightness», line 108, in icc_brightness_apply icc_brightness(brightness, max_brightness) File «./icc-brightness», line 85, in icc_brightness subprocess.check_output([‘colormgr’, ‘import-profile’, icc_filepath]) File «/usr/lib/python3.8/subprocess.py», line 411, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File «/usr/lib/python3.8/subprocess.py», line 512, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command ‘[‘colormgr’, ‘import-profile’, ‘/tmp/brightness_52284_120000.icc’]’ returned non-zero exit status 1.
but always the same error
When running watch, the error changes:
Источник
Dell xps oled linux brightness
How to install Ubuntu on a Dell XPS 15 model from 2019?
This page will explain how to fix a number of issues with the latest Ubuntu 19.10 running on said laptop. To use the WiFi card a Linux kernel 5.3 or later is required. Ubuntu 18.04.3 LTS should therefore also work with this laptop.
- CPU power management
- Changing brightness of OLED screen with brightness keys
- Enabling hardware acceleration for video decoding in Chrome
Things that work out of the box with BIOS 1.3.3:
Things that do not work:
- Low power consumption with proper Nvidia graphics drivers and working standby
To install Ubuntu on a Dell XPS 15 you need to set your Sata Operation in the laptops BIOS from Raid to AHCI. Plugin a USB stick with the image of the latest Ubuntu 19.10 and install from the stick. It is recommended to also install 3rd party software for which one needs to connect the laptop to the internet.
After the installation is complete, run
to update the system to the latest versions.
If your BIOS version is not up to date the Ubuntu Software manager should offer you a firmware update. This will flash the BIOS upon the next reboot and should thus be done while the laptop is not running on battery. It is recommended to update the BIOS as this ensures working keyboard backlight.
Graphics card driver update
Out of the box the power consumption of the laptop is fairly high at 25 W to 30 W. Apparently, the Nvidia GPU is always active and is not switched off or in power savings mode. This can be rectified with an Ubuntu tool. Run
(Source) If Secure Boot is active, which it should be, then a Machine Owner Key (MOK) needs to be added to the firmware. The tool ubuntu-drivers tool will do this, but you need to specify a password. This password will only be used once upon the next reboot to ensure that you are the one adding a MOK and not some malware (this is the point of Secure Boot).
With the updated drivers the idle power consumption falls to around 12 W, which is still more than the 6 W or so minimum that this laptop can achieve.
Caveat: With the updated drivers the Standby mode seems to break. While the system does go into standby, the GPU «falls off the bus» when waking up. Requiring a hard reboot.
CPU power management
Without further configuration the CPU will run quite hot and will quickly drain the battery. Install powertop and thermald to fix this.
You can start powertop with sudo powertop , navigate to the Tunables section and switch all Bad points to Good. Probably not all of them have a big effect, I have not tried, but the processor related points are absolutely required. However, these changes are not permanent and will be reset at reboot. Instead let us create a service that will change these settings at boot time.
The script and setup are taken from here.
First, create a service with
and then enable this service to run at boot time with
Voila, this should give you a laptop using around 7 W of power in idle (with a black screen).
Note: I also tried running with the energy management tool TLP but found it ineffective.
Screen Brightness (OLED)
When pressing the function keys to change the screen brightness, you will see the Ubuntu brightness icon and its brightness bar changing. However, the brightness of the screen will not change. Apparently, Ubuntu tries to change the background brightness of the screen. Since OLED screens do not have a background illumination, nothing happens.
This is undesirable. Not only will the screen often be too bright, it will also age the display faster. It is possible to change the brightness of the screen from the command line via
to 60 % in this case. The output display eDP-1 might change, if you should use the Nvidia instead of the Intel graphics card. Careful: 0 is black and black on OLED displays is really all black.
The function keys can be mapped to use this command to change the brightness. (Source for Lenovo Thinkpad)
We first create two files that are triggered by the button presses. You need to create a file /etc/acpi/events/dell-brightness-up with the content
and a file /etc/acpi/events/dell-brightness-down with the content
Finally, we need a script executing the required xrandr command. Copy this script to /etc/acpi/dell-brightness.sh and grand it execution rights with sudo chmod u+x /etc/acpi/dell-brightness.sh .
After all scripts have been added reload the acpi daemon so that they can have an effect, sudo acpid reload . If the behavior is unexpected, a machine reboot may help.
Note that OLED displays only consume energy and age when the individual pixels are emitting light. Hence, it is advisable to choose dark background colors and install a dark scheme in your browser.
Hardware Acceleration in Chromium
To be able to watch Youtube and other videos from a browser without draining the battery very quickly hardware acceleration for video decoding is required. Unfortunately, neither Googles Chrome(ium) nor Firefox offer hardware acceleration for Linux. There is a private Chromium package on offer that has hardware acceleration enabled, though. Beware that adding private package repositories introduces a security risk and that the following Chromium is based on the less stable beta version. Use at own risk.
Add the private repository and install Chromium via:
For more details and instructions on possibly required driver updates see here.
Источник
How Well Does Ubuntu 20.04 Run on The Dell XPS 15 2020 (9570)
May 20, 2020 · 3 min read
So you’re interesting in installing the latest Ubuntu LTS on your shiny new Dell XPS. We’ll you’ve come to the right place and in fact, are in a bit of luck, as Ubuntu’s 20.04 boot media now supports AX200 wifi cards out the box!
However, there are still a few issues plaguing XPS 9570 users who have chosen to run the latest Ubuntu, and I thought I’d let you know what they are before you dive in headfirst.
The out the box experi e nce is quiet good, compared to 19.10 it feels faster, has less crashes and as we mentioned the wifi — just works.
What doesn’t work out the box, but can be fixed using this guide:
- OLED screen brightness controls
- Hibernate when closing lid (to avoid excessive battery drain)
- Great battery life (2–3 hours, but can be improved to
5 hours)
What doesn’t work at all, and is my secret reason for making this guide in hope that people will suggest fixes for:
- Microphone input via combo hack i.e. using Apple earphones
- Output video to external screen with lid closed
- Fingerprint reader (support coming soon)
Installing Ubuntu 20.04
Now given this laptop comes with Windows 10 pre-installed; there is currently no developer edition XPS 15 available. So I’m going to assume you want to keep Windows and make this a dual boot system.
Installing Ubuntu alongside Windows 10
- Create USB stick. Guide here if needed
- Press F12 on boot to select your removable media
- Go through install following this guide (skip to step 6)
Function keys won’t adjust screen brightness (OLED only)
- Install gnome tweak tools from Ubuntu Software Centre
- Run `sudo apt-get install chrome-gnome-shell` (even if you don’t have or use chrome)
- Install OLED dimmer extension
- Reboot and now the keys should work.
Enabling Hibernate
- Install gparted from Ubuntu Software Centre
- Find the partition with the file system linux-swap
- Right click > Swapon (if not already on)
- Right click > Information
- Copy the UUID=14cee2ec-9d37–4ac0-b594-eae0e55814aa (for example)
- Add this UUID to /etc/default/grub file by running sudo gedit /etc/default/grub and editing the line
7. Run sudo update-grub
8. Add the UUID again, to `/etc/initramfs-tools/conf.d/resume` file by running sudo gedit /etc/initramfs-tools/conf.d/resume
and pasting in the following:
9. Run `sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla`
and paste in the following:
10. Run `sudo gedit /etc/systemd/logind.conf`
and change the following line:
Improving Battery Life
- Run sudo prime-select on-demand (for nvidia graphics)
- Run sudo apt install powertop (for intel cpu)
- Run sudo gedit /etc/rc.local
and paste in the following (before the exit 0 line)
CPU Fan Management
- Download and install gnome extension cpufreq
2. Ensure you have the following setting under power events (batt is a custom profile, do the same by creating a profile or choose build in one)
The biggest disappointment with this laptop has to be it’s audio issues. The combo audio jack just cannot seem to reliably change from the build mic/speaker to the external one. In the end I opted for a audio jack to usb converter -> (which solved the problem) https://www.amazon.co.uk/dp/B07RRZYZFV/ref=emc_b_5_t
If you would like to setup trackpad gestures checkout my other guide here.
Источник