You are not logged in.

#876 2016-08-29 21:08:48

diraimondo
Member
Registered: 2014-03-28
Posts: 61

Re: Dell XPS 13 9350 Late 2015

frank604 wrote:
diraimondo wrote:

There is light at the end of the "NVMe power management" tunnel... smile

https://www.phoronix.com/scan.php?page= … vings-APST

Did any brave guy test these patches?

I'll try to patch this against Intel drm nightly tonight. See how my power goes. Not sure how to test power consumption. I'll have to google fu how to see power state of nvme.

In order to verify you could use:

$ smartctl -c /dev/nvme0
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.7.2-1-ARCH] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Firmware Updates (0x06):            3 Slots
Optional Admin Commands (0x0017):   Security Format Frmw_DL *Other*
Optional NVM Commands (0x001f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat
Maximum Data Transfer Size:         32 Pages

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     6.00W       -        -    0  0  0  0        5       5
 1 +     4.20W       -        -    1  1  1  1       30      30
 2 +     3.10W       -        -    2  2  2  2      100     100
 3 -   0.0700W       -        -    3  3  3  3      500    5000
 4 -   0.0050W       -        -    4  4  4  4     2000   22000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         0

the 'Op' column should denote the activable power states (at most level n.2 in my case).

Last edited by diraimondo (2016-08-29 21:09:29)

Offline

#877 2016-08-30 03:19:28

vtrac
Member
Registered: 2016-01-28
Posts: 42

Re: Dell XPS 13 9350 Late 2015

aromanos wrote:
ksim wrote:
vtrac wrote:

Sigh. New kernel updated to 4.7.2-1 and now I can't get X to run for more than 5 seconds without freezing.

use i915.enable_psr=0

Same issue here but the parameter did nothing to me. Fortunately rolling back to 4.7.1-1 did it for now.

I tried nearly every combination I could think of with intel_i915.enable_execlists=0, idle.max_cstate=1, i915.semaphores=1, & i915.enable_psr=0 on kernels 4.7.2-1, 4.7.1-1, 4.6.x, and even the LTS kernel. I tried those kernel settings in both the systemd boot loader and in /etc/modules.d/i915.conf. I finally got things back to "stable" by having the xf86-video-intel driver installed but using modesettings in the xorg config and haven't touched it since. I could probably uninstall xf86-video-intel, but I'm so scared of touching anything since I can't isolate a single reason why it's working now but not after I rolled back to a previously working kernel.

Offline

#878 2016-08-30 12:25:50

Pet0r
Member
Registered: 2016-05-03
Posts: 10

Re: Dell XPS 13 9350 Late 2015

seismic wrote:

Looks like some good drm-intel fixes have landed in mainline. Just installed 4.8 rc3 and finally getting 4k@60Hz on my external display!

$ xrandr
Screen 0: minimum 320 x 200, current 3840 x 2160, maximum 8192 x 8192
XWAYLAND0 connected 3840x2160+0+0 710mm x 400mm
   3840x2160     59.98*+

My setup is 9350 (i7-6560U/Iris 540/QHD+) and Acer B326HK display connected with this USB-C to DP cable:

https://www.startech.com/AV/usb-c-video … DP2DPMM1MB

Do you have any of the previously mentioned issues with USB-C to DP like additional static cursor and cursor "lag"?

Offline

#879 2016-08-31 16:00:26

aromanos
Member
Registered: 2016-05-20
Posts: 3

Re: Dell XPS 13 9350 Late 2015

vtrac wrote:
aromanos wrote:
ksim wrote:

use i915.enable_psr=0

Same issue here but the parameter did nothing to me. Fortunately rolling back to 4.7.1-1 did it for now.

I tried nearly every combination I could think of with intel_i915.enable_execlists=0, idle.max_cstate=1, i915.semaphores=1, & i915.enable_psr=0 on kernels 4.7.2-1, 4.7.1-1, 4.6.x, and even the LTS kernel. I tried those kernel settings in both the systemd boot loader and in /etc/modules.d/i915.conf. I finally got things back to "stable" by having the xf86-video-intel driver installed but using modesettings in the xorg config and haven't touched it since. I could probably uninstall xf86-video-intel, but I'm so scared of touching anything since I can't isolate a single reason why it's working now but not after I rolled back to a previously working kernel.

A the end I let pacman to upgrade again to 4.7.2-1, by mistake and now X it's fully stable again. Very strange. Running on default i915 module parameters and latest xf86-video-intel with default parameters too except for TearFree on.

Offline

#880 2016-08-31 23:16:01

davidgf
Member
Registered: 2015-11-28
Posts: 58

Re: Dell XPS 13 9350 Late 2015

frank604 wrote:
diraimondo wrote:

There is light at the end of the "NVMe power management" tunnel... smile

https://www.phoronix.com/scan.php?page= … vings-APST

Did any brave guy test these patches?

I'll try to patch this against Intel drm nightly tonight. See how my power goes. Not sure how to test power consumption. I'll have to google fu how to see power state of nvme.

Yes please Frank, give us a reply to see whether it works or not. I might build the kernel if that kills me 3Watts, I think my laptop is too hot mainly because of that big_smile The kernel caching mechanism should be able to hide the HDD mode change latency, and anyway the latencies are probably worst-case figures.

Offline

#881 2016-08-31 23:26:23

davidgf
Member
Registered: 2015-11-28
Posts: 58

Re: Dell XPS 13 9350 Late 2015

Anyone having bluetooth issues with wifi? It seems for me wifi receives no packets at all when bluetooth is streaming audio. It get really bad depending on the router, at home I have almost no wifi and I'm next to the friking router... I might just get a better wifi card this time neutral

Offline

#882 2016-09-01 05:35:21

kn
Member
Registered: 2016-02-07
Posts: 11

Re: Dell XPS 13 9350 Late 2015

davidgf wrote:

Anyone having bluetooth issues with wifi? It seems for me wifi receives no packets at all when bluetooth is streaming audio. It get really bad depending on the router, at home I have almost no wifi and I'm next to the friking router... I might just get a better wifi card this time neutral

I have replaced my Broadcom WiFi card for Intel 7265 and I have no issues with bluetooth headset and network usage at the same time.

Offline

#883 2016-09-01 06:05:44

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 100

Re: Dell XPS 13 9350 Late 2015

I have an Intel Corporation Wireless 8260 (rev 3a).
But I also have many problems, especially when bluetooth activated:
https://bbs.archlinux.org/viewtopic.php?id=215300

Offline

#884 2016-09-01 07:39:03

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Dell XPS 13 9350 Late 2015

Sorry, didn't have time till today to look at those patches.  Having some issues getting the patch to apply.  Looks like I'll have to hand patch and create new diffs against 4.8-rc4.  I'll look at that tomorrow.  I'll post here when it compiles correctly.

Edit: I found the downloable patchset v2 from Andy L.

Last edited by frank604 (2016-09-12 21:24:23)

Offline

#885 2016-09-01 09:08:57

DebauchedSloth
Member
Registered: 2014-12-08
Posts: 29

Re: Dell XPS 13 9350 Late 2015

frank604 wrote:

Sorry, didn't have time till today to look at those patches.  Having some issues getting the patch to apply.  Looks like I'll have to hand patch and create new diffs against 4.8-rc4.  I'll look at that tomorrow.  I'll post here when it compiles correctly.

Took a quick look at those too, but didn't have time to fix them up.  If you could post updated patches when you have them, that would be awesome.

Offline

#886 2016-09-01 09:10:24

c0re
Member
Registered: 2011-12-17
Posts: 7

Re: Dell XPS 13 9350 Late 2015

Currently playing around with i3 after a long abscence from tiling wms. I am struggling to get the function keys working. The keyboard backlight switch works but in particular volume and screen brightness don't. Both work flawlessly out of the box in plasma. Could somebody kindly point me in the right direction?

Many thanks!

edit: This works for me:

# Pulse Audio
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound

# Screen brightness
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness

Last edited by c0re (2016-09-01 09:46:38)

Offline

#887 2016-09-01 10:45:43

seismic
Member
Registered: 2016-08-29
Posts: 2

Re: Dell XPS 13 9350 Late 2015

Pet0r wrote:
seismic wrote:

Looks like some good drm-intel fixes have landed in mainline. Just installed 4.8 rc3 and finally getting 4k@60Hz on my external display!

$ xrandr
Screen 0: minimum 320 x 200, current 3840 x 2160, maximum 8192 x 8192
XWAYLAND0 connected 3840x2160+0+0 710mm x 400mm
   3840x2160     59.98*+

My setup is 9350 (i7-6560U/Iris 540/QHD+) and Acer B326HK display connected with this USB-C to DP cable:

https://www.startech.com/AV/usb-c-video … DP2DPMM1MB

Do you have any of the previously mentioned issues with USB-C to DP like additional static cursor and cursor "lag"?

No, not anymore.

Offline

#888 2016-09-01 22:33:08

sender
Member
Registered: 2014-07-20
Posts: 34

Re: Dell XPS 13 9350 Late 2015

Thanks for sharing.

c0re wrote:

Currently playing around with i3 after a long abscence from tiling wms. I am struggling to get the function keys working. The keyboard backlight switch works but in particular volume and screen brightness don't. Both work flawlessly out of the box in plasma. Could somebody kindly point me in the right direction?

Many thanks!

edit: This works for me:

# Pulse Audio
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound

# Screen brightness
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness

XPS 13 9350 / i7-6560U / 16GB / 1T NVMe / QHD+ / Iris 540 / Intel 7265D / linux4.8

Offline

#889 2016-09-02 02:15:24

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Dell XPS 13 9350 Late 2015

Patches are good to go.  Compiling now.  I'll update github soon.

Edit: https://github.com/frank604/Dell-XPS-13 … ne/4.8-rc4

Edit2: I did not use the patches linked above.  The same dev posted a version 2 of the patch set the day after (AUG 30).  The patches in my github are using V2.

Edit3: Ok, finished compiling.  Before I reboot into patched kernel I wanted to post current output

smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.8.0-1-drm-intel-nightly] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Firmware Updates (0x06):            3 Slots
Optional Admin Commands (0x0017):   Security Format Frmw_DL *Other*
Optional NVM Commands (0x001f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat
Maximum Data Transfer Size:         32 Pages

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     6.00W       -        -    0  0  0  0        5       5
 1 +     4.20W       -        -    1  1  1  1       30      30
 2 +     3.10W       -        -    2  2  2  2      100     100
 3 -   0.0700W       -        -    3  3  3  3      500    5000
 4 -   0.0050W       -        -    4  4  4  4     2000   22000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         0

Not sure if the patch worked.

smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.8.0-1-dell] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Firmware Updates (0x06):            3 Slots
Optional Admin Commands (0x0017):   Security Format Frmw_DL *Other*
Optional NVM Commands (0x001f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat
Maximum Data Transfer Size:         32 Pages

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     6.00W       -        -    0  0  0  0        5       5
 1 +     4.20W       -        -    1  1  1  1       30      30
 2 +     3.10W       -        -    2  2  2  2      100     100
 3 -   0.0700W       -        -    3  3  3  3      500    5000
 4 -   0.0050W       -        -    4  4  4  4     2000   22000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         0

Currently plugged into my WD15 dock, which is powering it.  The result looks the same.  For the 'Op' column, it is enabled if '+' is present and not enabled if '-' is present? 

PS.  Mainline sucks in general with my dock.


Here is some more output using the nvme cli from aur.

Current APST config:

❯ sudo nvme get-feature -f 0x0c -H /dev/nvme0                                                                                                                                                                    
get-feature:0x0c (Autonomous Power State Transition), Current value: 0x000001
	Autonomous Power State Transition Enable (APSTE): Enabled
	Auto PST Entries	.................
	Entry[ 0]   
	.................
	Idle Time Prior to Transition (ITPT): 275 ms
	Idle Transition Power State   (ITPS): 3
	.................
	Entry[ 1]   
	.................
	Idle Time Prior to Transition (ITPT): 275 ms
	Idle Transition Power State   (ITPS): 3
	.................
	Entry[ 2]   
	.................
	Idle Time Prior to Transition (ITPT): 275 ms
	Idle Transition Power State   (ITPS): 3
	.................
	Entry[ 3]   
	.................
	Idle Time Prior to Transition (ITPT): 1200 ms
	Idle Transition Power State   (ITPS): 4
	.................
	Entry[ 4]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[ 5]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[ 6]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[ 7]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[ 8]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[ 9]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[10]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[11]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[12]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[13]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[14]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[15]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[16]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[17]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[18]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[19]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[20]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[21]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[22]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[23]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[24]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[25]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[26]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[27]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[28]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[29]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[30]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[31]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................

Power state table:

❯ sudo nvme id-ctrl /dev/nvme0                                                                                                                                                                                   
NVME Identify Controller:
vid     : 0x144d
ssvid   : 0x144d
sn      :       S29NNXAGC40883
mn      : PM951 NVMe SAMSUNG 256GB                
fr      : BXV77D0Q
rab     : 2
ieee    : 002538
cmic    : 0
mdts    : 5
cntlid  : 1
ver     : 0
rtd3r   : 0
rtd3e   : 0
oaes    : 0
oacs    : 0x17
acl     : 7
aerl    : 3
frmw    : 0x6
lpa     : 0
elpe    : 63
npss    : 4
avscc   : 0x1
apsta   : 0x1
wctemp  : 0
cctemp  : 0
mtfa    : 0
hmpre   : 0
hmmin   : 0
tnvmcap : 0
unvmcap : 0
rpmbs   : 0
sqes    : 0x66
cqes    : 0x44
nn      : 1
oncs    : 0x1f
fuses   : 0
fna     : 0
vwc     : 0x1
awun    : 255
awupf   : 0
nvscc   : 1
acwu    : 0
sgls    : 0
ps    0 : mp:6.00W operational enlat:5 exlat:5 rrt:0 rrl:0
          rwt:0 rwl:0 idle_power:- active_power:-
ps    1 : mp:4.20W operational enlat:30 exlat:30 rrt:1 rrl:1
          rwt:1 rwl:1 idle_power:- active_power:-
ps    2 : mp:3.10W operational enlat:100 exlat:100 rrt:2 rrl:2
          rwt:2 rwl:2 idle_power:- active_power:-
ps    3 : mp:0.0700W non-operational enlat:500 exlat:5000 rrt:3 rrl:3
          rwt:3 rwl:3 idle_power:- active_power:-
ps    4 : mp:0.0050W non-operational enlat:2000 exlat:22000 rrt:4 rrl:4
          rwt:4 rwl:4 idle_power:- active_power:-

Last edited by frank604 (2016-09-02 03:40:35)

Offline

#890 2016-09-02 04:00:27

Jiaan
Member
From: China
Registered: 2016-08-07
Posts: 16
Website

Re: Dell XPS 13 9350 Late 2015

frank604 wrote:

Patches are good to go.  Compiling now.  I'll update github soon.

Edit: https://github.com/frank604/Dell-XPS-13 … ne/4.8-rc4

Edit2: I did not use the patches linked above.  The same dev posted a version 2 of the patch set the day after (AUG 30).  The patches in my github are using V2.

Edit3: Ok, finished compiling.  Before I reboot into patched kernel I wanted to post current output

smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.8.0-1-drm-intel-nightly] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Firmware Updates (0x06):            3 Slots
Optional Admin Commands (0x0017):   Security Format Frmw_DL *Other*
Optional NVM Commands (0x001f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat
Maximum Data Transfer Size:         32 Pages

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     6.00W       -        -    0  0  0  0        5       5
 1 +     4.20W       -        -    1  1  1  1       30      30
 2 +     3.10W       -        -    2  2  2  2      100     100
 3 -   0.0700W       -        -    3  3  3  3      500    5000
 4 -   0.0050W       -        -    4  4  4  4     2000   22000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         0

Not sure if the patch worked.

smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.8.0-1-dell] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Firmware Updates (0x06):            3 Slots
Optional Admin Commands (0x0017):   Security Format Frmw_DL *Other*
Optional NVM Commands (0x001f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat
Maximum Data Transfer Size:         32 Pages

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     6.00W       -        -    0  0  0  0        5       5
 1 +     4.20W       -        -    1  1  1  1       30      30
 2 +     3.10W       -        -    2  2  2  2      100     100
 3 -   0.0700W       -        -    3  3  3  3      500    5000
 4 -   0.0050W       -        -    4  4  4  4     2000   22000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         0

Currently plugged into my WD15 dock, which is powering it.  The result looks the same.  For the 'Op' column, it is enabled if '+' is present and not enabled if '-' is present? 

PS.  Mainline sucks in general with my dock.


Here is some more output using the nvme cli from aur.

Current APST config:

❯ sudo nvme get-feature -f 0x0c -H /dev/nvme0                                                                                                                                                                    
get-feature:0x0c (Autonomous Power State Transition), Current value: 0x000001
	Autonomous Power State Transition Enable (APSTE): Enabled
	Auto PST Entries	.................
	Entry[ 0]   
	.................
	Idle Time Prior to Transition (ITPT): 275 ms
	Idle Transition Power State   (ITPS): 3
	.................
	Entry[ 1]   
	.................
	Idle Time Prior to Transition (ITPT): 275 ms
	Idle Transition Power State   (ITPS): 3
	.................
	Entry[ 2]   
	.................
	Idle Time Prior to Transition (ITPT): 275 ms
	Idle Transition Power State   (ITPS): 3
	.................
	Entry[ 3]   
	.................
	Idle Time Prior to Transition (ITPT): 1200 ms
	Idle Transition Power State   (ITPS): 4
	.................
	Entry[ 4]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[ 5]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[ 6]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[ 7]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[ 8]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[ 9]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[10]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[11]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[12]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[13]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[14]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[15]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[16]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[17]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[18]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[19]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[20]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[21]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[22]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[23]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[24]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[25]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[26]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[27]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[28]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[29]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[30]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................
	Entry[31]   
	.................
	Idle Time Prior to Transition (ITPT): 0 ms
	Idle Transition Power State   (ITPS): 0
	.................

Power state table:

❯ sudo nvme id-ctrl /dev/nvme0                                                                                                                                                                                   
NVME Identify Controller:
vid     : 0x144d
ssvid   : 0x144d
sn      :       S29NNXAGC40883
mn      : PM951 NVMe SAMSUNG 256GB                
fr      : BXV77D0Q
rab     : 2
ieee    : 002538
cmic    : 0
mdts    : 5
cntlid  : 1
ver     : 0
rtd3r   : 0
rtd3e   : 0
oaes    : 0
oacs    : 0x17
acl     : 7
aerl    : 3
frmw    : 0x6
lpa     : 0
elpe    : 63
npss    : 4
avscc   : 0x1
apsta   : 0x1
wctemp  : 0
cctemp  : 0
mtfa    : 0
hmpre   : 0
hmmin   : 0
tnvmcap : 0
unvmcap : 0
rpmbs   : 0
sqes    : 0x66
cqes    : 0x44
nn      : 1
oncs    : 0x1f
fuses   : 0
fna     : 0
vwc     : 0x1
awun    : 255
awupf   : 0
nvscc   : 1
acwu    : 0
sgls    : 0
ps    0 : mp:6.00W operational enlat:5 exlat:5 rrt:0 rrl:0
          rwt:0 rwl:0 idle_power:- active_power:-
ps    1 : mp:4.20W operational enlat:30 exlat:30 rrt:1 rrl:1
          rwt:1 rwl:1 idle_power:- active_power:-
ps    2 : mp:3.10W operational enlat:100 exlat:100 rrt:2 rrl:2
          rwt:2 rwl:2 idle_power:- active_power:-
ps    3 : mp:0.0700W non-operational enlat:500 exlat:5000 rrt:3 rrl:3
          rwt:3 rwl:3 idle_power:- active_power:-
ps    4 : mp:0.0050W non-operational enlat:2000 exlat:22000 rrt:4 rrl:4
          rwt:4 rwl:4 idle_power:- active_power:-

How is your discharge rate? The only difference I can tell is my "Autonomous Power State Transition" is in disabled state.

Offline

#891 2016-09-02 04:15:56

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Dell XPS 13 9350 Late 2015

Jiaan wrote:

How is your discharge rate? The only difference I can tell is my "Autonomous Power State Transition" is in disabled state.

TBH I didn't notice a difference.  I don't want to speak much about this unless I've used it for a day or so and can get a feel of it.  I've seen in powertop showing 3W to 11W.  Never seen it go to 3W before.  I left the 4.8-rc4 nvme patched kernel after pumping those outputs.  I'm compiling the patches on intel-drm-nightly now as my work station (wd15 dock/dual head) doesn't work well on mainline. 

Keep in mind that this is an early stage of the nvme fix.  It is not widely tested yet either.

Edit: took out my overly long post in quote.  Let's not quote my post with all the output.  Just @frank604 or something instead.

Edit2: Ok, it's been a few hours with the patch.  Not sure about battery life yet but this is getting me MUCH cooler temps.  Left video playing on blanket and it is cool as a pickle.  Well, not really, and for those that need numbers, I'm sitting at 30-35C on my lap while writing this.  Pretty awesome.  Usually my nuts get warmed up and I often wonder about my ability to reproduce.

Last edited by frank604 (2016-09-02 06:52:56)

Offline

#892 2016-09-02 10:49:16

davidgf
Member
Registered: 2015-11-28
Posts: 58

Re: Dell XPS 13 9350 Late 2015

Oh man what a laugh big_smile Same here, gets pretty hot.
I'll try to build the kernel myself then, if it's worth it big_smile Maybe I can play with kernel trace to see when the transitions happen, maybe we can optimize it a bit more, there are some hardcoded values according to the author (I recall a 50x for latency/idle ratio).

So about the bluetooth wifi, then some of you guys have issues with the BCM card when using both right? It only happens to me on some wifis, I believe 5GHz works well while 2.4GHz is fucked up. I might buy the Intel card then.

Thanks a lot guys! I'll post if I'm able to reproduce those 3W smile

Offline

#893 2016-09-02 13:47:35

DebauchedSloth
Member
Registered: 2014-12-08
Posts: 29

Re: Dell XPS 13 9350 Late 2015

Jiaan wrote:

How is your discharge rate? The only difference I can tell is my "Autonomous Power State Transition" is in disabled state.

I am seeing 9W where I used to see 11-12W (Precision 5510 4K).  I think this is working great.

Thanks for porting this, @frank.

Edit: After more use - definitely seems much cooler as well.

Last edited by DebauchedSloth (2016-09-02 14:22:11)

Offline

#894 2016-09-02 14:54:15

bart_vv
Member
From: Poland
Registered: 2011-04-12
Posts: 51

Re: Dell XPS 13 9350 Late 2015

That's great to hear guys! It is a major issue with linux on xps / new laptops, that, when resolved, will give us much lower temps and longer battery times. Still, shouldn't the 'Op' column be +'ed?

Jiaan wrote:

How is your discharge rate? The only difference I can tell is my "Autonomous Power State Transition" is in disabled state.

davidgf wrote:

those 3W

Difference between states 0 and 2 is around 3W. Is it possible that it hasn't been enabled the whole time, and we've been using our nvme drives on highest power state all the time? Also, does 'non-operational' mean that hardware doesn't support it, or isn't implemented yet in driver? Wondering if there is yet more room for improvement.

Offline

#895 2016-09-02 15:04:13

damige
Member
Registered: 2016-09-02
Posts: 40

Re: Dell XPS 13 9350 Late 2015

I can confirm a drop of about 0.5-1 watt when idle (4-4.5watt now). heat and fan running seems to be less then before nvme patch, for reference: im seeing 60-65c when watching 1080p youtube (but no fan running).

Are any of you experiencing wpa supplicant hanging when shutting down with the xps 13 9350 on any 4.8 kernel ? (any <4.8 seem to be fine)

Edit: Have solved this by upgrading to networkmanager 1.4.1dev. (I had this downgraded to 1.2.5 due to another BCM bug when networkmanager updated to 1.4.0)

Last edited by damige (2016-09-02 16:06:18)


XPS 15 7590 | i9-9980HK | 32GB RAM | 512G NVME | Intel AX200 | NVIDIA 1650 | OLED 4K

Offline

#896 2016-09-02 15:18:04

Jiaan
Member
From: China
Registered: 2016-08-07
Posts: 16
Website

Re: Dell XPS 13 9350 Late 2015

bart_vv wrote:

Difference between states 0 and 2 is around 3W. Is it possible that it hasn't been enabled the whole time, and we've been using our nvme drives on highest power state all the time?

Not likely, because my highest nvem power state is 6W, and I can observe a discharge rate 5.8W without X but with wifi on.

Last edited by Jiaan (2016-09-02 15:18:50)

Offline

#897 2016-09-02 16:46:22

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Dell XPS 13 9350 Late 2015

For our brothers who are too timid to compile a kernel, if you trust me you can wget one of my compiled kernels and pacman -U package.tar.xz  the nvme patched intel drm nightly is located https://github.com/frank604/Dell-XPS-13 … el-Nightly
Please do check the shasum after download and always have a fallback kernel to boot into.

I haven't done much testing but I was able to constantly stream video from youtube from 10pm until 6am on 30% brightness, which is when the laptop shutdown due to low battery from journalctl.  That is not bad.  Not sure if this is all placebo, but I'm thinking this fix does bring some improvements.  Thanks for announcing the news and linking it.

Offline

#898 2016-09-02 19:48:52

kang
Member
Registered: 2010-08-07
Posts: 83

Re: Dell XPS 13 9350 Late 2015

frank604 wrote:

For our brothers who are too timid to compile a kernel, if you trust me you can wget one of my compiled kernels and pacman -U package.tar.xz  the nvme patched intel drm nightly is located https://github.com/frank604/Dell-XPS-13 … el-Nightly
Please do check the shasum after download and always have a fallback kernel to boot into.

I haven't done much testing but I was able to constantly stream video from youtube from 10pm until 6am on 30% brightness, which is when the laptop shutdown due to low battery from journalctl.  That is not bad.  Not sure if this is all placebo, but I'm thinking this fix does bring some improvements.  Thanks for announcing the news and linking it.

this laptop = FHD or QHD, iris, no iris?

Offline

#899 2016-09-02 19:51:44

OdinEidolon
Member
From: Belluno - Italy
Registered: 2011-01-31
Posts: 498

Re: Dell XPS 13 9350 Late 2015

This patch will be default on 4.9 if I'm not mistaken, right?


Hardware: 2016 Dell XPS15 - matte FullHD - i5-6300HQ - 32GB DDR4 - Nvidia GTX960M - Samsung 840EVO 250GB SSD - 56Wh
Software: Plasma 5 - rEFInd - linux-ck - preload - prelink - verynice - psd - bumblebee

Offline

#900 2016-09-02 20:15:22

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Dell XPS 13 9350 Late 2015

FHD no iris. 

The patch was just pushed to mailing list so it is at its early stage in merging with mainline.  I imagine the very earliest, although highly unlikely, would be 4.9 but wouldn't be surprised to see it in mainline a release or two after 4.9.  https://www.kernel.org/doc/Documentatio … /2.Process

Up until it is merged into mainline, we can just keep patching it in.

Last edited by frank604 (2016-09-02 22:31:53)

Offline

Board footer

Powered by FluxBB