Dell XPS 13 (7390)

From ArchWiki

This article or section does not follow the Laptop page guidelines.

Reason: Hardware and function keys table need adjustment. Do not duplicate content from other pages. A systemd timer or a cronjob is not device-specific. (Discuss in Talk:Dell XPS 13 (7390))
Hardware PCI/USB ID Working?
Video Yes
Wireless Yes
Bluetooth Yes
Audio Yes
Touchpad Yes
Webcam Yes

Screen

Backlight

Install acpilight or lightAUR to set the display backlight. Add the following udev rule and your user to the video group:

/etc/udev/rules.d/90-backlight.rules
SUBSYSTEM=="backlight", ACTION=="add", \
  RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", \
  RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"

It might be necessary to supply the acpi_backlight=vendor kernel parameter, see backlight.

To avoid automatic backlight dimming, enter BIOS(F2 at boot) and disable "EcoPower" option in "Video" section

Screen glitching or flickering

Panel Self-Refresh (PSR) may need to be disabled to avoid screen flickering in some systems. You may also need to disable DRI in your Xorg configuration file to resolve these issues.

Warning: Disabling graphics acceleration via the DRI option will reduce performance in GPU intense applications such as video games.

Battery

It is possible to set the start and stop charging thresholds similar to TLP for ThinkPads using dell-command-configureAUR.

Example:

# /opt/dell/dcc/cctk --PrimaryBattChargeCfg=custom:75-80
PrimaryBattChargeCfg=Custom:75-80

To reset the thresholds at reboot simply add a cronjob:

@reboot /opt/dell/dcc/cctk --PrimaryBattChargeCfg=custom:50-80

To reset battery thresholds using a systemd-timer and a corresponding unit:

edit /etc/systemd/system/dell_battery.timer:

/etc/systemd/system/dell_battery.timer
[Unit]
Description=Set charging thresholds for battery

[Timer]
OnBootSec=5

[Install]
WantedBy=timers.target

edit /etc/systemd/system/dell_battery.service:

/etc/systemd/system/dell_battery.service
[Unit]
Description=Set charging thresholds for battery

[Service]
ExecStart=/usr/local/bin/dell_battery_thresholds.sh
RemainAfterExit=yes

[Install]
WantedBy=default.target

edit /usr/local/bin/dell_battery_thresholds.sh:

/usr/local/bin/dell_battery_thresholds.sh
#!/bin/bash
/opt/dell/dcc/cctk --PrimaryBattChargeCfg=custom:75-87

make the script executable and enable dell_battery.timer.

Function/Multimedia Keys

Key Visible? Working? Effect
Fn+F1 Yes Yes XF86AudioMute
Fn+F2 Yes Yes XF86AudioLowerVolume
Fn+F3 Yes Yes XF86AudioRaiseVolume
Fn+F4 Yes Yes XF86AudioPrev
Fn+F5 Yes Yes XF86AudioPlay
Fn+F6 Yes Yes XF86AudioNext
Fn+F7 Yes Yes Task view : sends Super+Tab followed by a key with keycode 0x0
Fn+F8 Yes Yes Switch to external display : sends Super+p
Fn+F9 Yes Yes XF86Search
Fn+F10 Yes Toggle keyboard backlight
Fn+F11 Yes Yes Print
Fn+F12 Yes Yes Insert
Fn+Home Yes Yes XF86RFKill
Fn+End Yes Yes XF86Sleep
Fn+Up Yes Yes XF86MonBrightnessUp
Fn+Down Yes Yes XF86MonBrightnessDown

Keybindings

Check out Keyboard shortcuts#Customization, your DE/WM's documentation or the relevant articles in the wiki (e.g. backlight, PulseAudio#Keyboard volume control, ...) to learn how to set up keybindings and shortcuts for your environment.

Volume keys

This article or section needs language, wiki syntax or style improvements. See Help:Style for reference.

Reason: Xkeybinds is one program and not a general approach, better to refer to more general wiki entries on keybindings. (Discuss in Talk:Dell XPS 13 (7390))

Use xbindkeys to map the volume buttons.

~/.xbindkeysrc
# Increase volume
"pactl set-sink-volume @DEFAULT_SINK@ +1000"
   XF86AudioRaiseVolume

# Decrease volume
"pactl set-sink-volume @DEFAULT_SINK@ -1000"
   XF86AudioLowerVolume

# Mute volume
"pactl set-sink-mute @DEFAULT_SINK@ toggle"
   XF86AudioMute

Change thermal settings to reduce fan noise

Under default setting, the thermal tables controlling fan speed are fairly aggressive; they apparently try to keep the CPU below 40 degrees celsius. This is useful to have a large thermal buffer for spikes in CPU usage, but it does keep the fan constantly running even when idle (depending on ambient conditions).

The smbios-thermal-ctl utility can be used to select one of four pre-defined thermal profiles. Ensure libsmbios is installed. Then, run

# smbios-thermal-ctl -i

to see the supported profiles. Executing

# smbios-thermal-ctl --set-thermal-mode=Quiet

gave a silent-in-idle operation under light use in a warm room. See Dell XPS 13 (9370)#Thermal Modes / Fan profiles for more information.

References