public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* Fast User Switching does not seem to work
@ 2014-10-09  0:38 constantine
  2014-10-09  1:11 ` Felix Miata
  2014-10-09 13:35 ` constantine
  0 siblings, 2 replies; 4+ messages in thread
From: constantine @ 2014-10-09  0:38 UTC (permalink / raw)
  To: intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 3780 bytes --]

Hello all!

I am encountering a peculiar problem with Fast User Switching or Kernel
Mode Setting and I do not know how to troubleshoot it.

When I run two (or more) Virtual Terminals switching between them
(Ctrl+Alt+F2-3, etc.) takes 2+ seconds. (That is either simply initiated
with startx from tty2 and tty3 or as different displays with KDisplay
Manager (kdm) in :0 and :1)

I am using an intel graphics driver so I suppose KMS should be enabled by
default and this seems to be the case, but there still are delays swithing
 VTs.

I have followed the instructions at
http://carlosbecker.com/posts/how-to-enable-kms-on-i915-graphiccard-archlinux/
 https://wiki.archlinux.org/index.php/kernel_mode_setting
https://wiki.archlinux.org/index.php/Intel_graphics but I am still
experiencing the problem.

Last, I am certain it is not a hardware related issue, because I can fast
switch in ubuntu, but not in Arch linux.



Any ideas?




$ sudo cat /sys/module/i915/parameters/modeset
1

### Note: ### Before starting the "process" of enabling KMS (which I
suppose it should be enabled in the first place, right?) this value was:
 -1

$ uname -a
Linux myhostname 3.16.4-1-ARCH #1 SMP PREEMPT Mon Oct 6 08:22:27 CEST 2014
x86_64 GNU/Linux

$ lsmod | grep -e drm -e 915 -e kms
crc32_pclmul        12915     0
scsi_mod              142915   4 uas,usb_storage,libata,sd_mod
i915                       864879  8
button                    12909    1 i915
i2c_algo_bit           12744    1 i915
video                      17995    1 i915
drm_kms_helper    49262    1 i915
drm                         258005  10 i915,drm_kms_helper
i2c_core                  50152    5 drm,i915,i2c_i801,drm_kms_helper,
i2c_algo_bit
intel_gtt                   17848    2 i915,intel_agp

$ sudo lspci -vvnn | head -28 | tail -21
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200
v2/3rd Gen Core processor Graphics Controller [8086:0152] (rev 09) (prog-if
00 [VGA controller])
        Subsystem: ASRock Incorporation Device [1849:0152]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 40
        Region 0: Memory at f7800000 (64-bit, non-prefetchable) [size=4M]
        Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Region 4: I/O ports at f000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
                Address: fee0f00c  Data: 4181
        Capabilities: [d0] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [a4] PCI Advanced Features
                AFCap: TP+ FLR+
                AFCtrl: FLR-
                AFStatus: TP-
        Kernel driver in use: i915
        Kernel modules: i915

$ head -10 /var/log/Xorg.0.log
[     4.919]
X.Org X Server 1.16.1
Release Date: 2014-09-21
[     4.919] X Protocol Version 11, Revision 0
[     4.919] Build Operating System: Linux 3.16.1-1-ARCH x86_64
[     4.919] Current Operating System: Linux myhostname 3.16.4-1-ARCH #1
SMP PREEMPT Mon Oct 6 08:22:27 CEST 2014 x86_64
[     4.919] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux
root=UUID=af9a90ee-5db2-4abf-b8be-006a65e9f09e rw quiet video=SVIDEO-1:d
[     4.920] Build Date: 21 September 2014  10:53:13AM
[     4.920]
[     4.920] Current version of pixman: 0.32.6

### Note: ### As kernel parameters I have also tried video=SVIDEO-1:d,
i915.modeset=1,
and nothing, but neither works.

[-- Attachment #1.2: Type: text/html, Size: 8728 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fast User Switching does not seem to work
  2014-10-09  0:38 Fast User Switching does not seem to work constantine
@ 2014-10-09  1:11 ` Felix Miata
  2014-10-09 13:35 ` constantine
  1 sibling, 0 replies; 4+ messages in thread
From: Felix Miata @ 2014-10-09  1:11 UTC (permalink / raw)
  To: intel-gfx

constantine composed on 2014-10-09 00:38 (UTC):

> I am encountering a peculiar problem with Fast User Switching or Kernel
> Mode Setting and I do not know how to troubleshoot it.

> When I run two (or more) Virtual Terminals switching between them
> (Ctrl+Alt+F2-3, etc.) takes 2+ seconds. (That is either simply initiated
> with startx from tty2 and tty3 or as different displays with KDisplay
> Manager (kdm) in :0 and :1)

> I am using an intel graphics driver so I suppose KMS should be enabled by
> default and this seems to be the case, but there still are delays swithing
>  VTs.

> I have followed the instructions at
> http://carlosbecker.com/posts/how-to-enable-kms-on-i915-graphiccard-archlinux/
>  https://wiki.archlinux.org/index.php/kernel_mode_setting
> https://wiki.archlinux.org/index.php/Intel_graphics but I am still
> experiencing the problem.

> Last, I am certain it is not a hardware related issue, because I can fast
> switch in ubuntu, but not in Arch linux.

> Any ideas?

Does your Arch use systemd?
Is your *buntu not using systemd?

Distros using systemd typically configure ttys to be on demand. Others do
not. I find when I do not reconfigure my systemd installations to start
logins on ttys at boot, delays getting to them are normal, and annoying.

IOW, I don't think your annoyance has anything to do with KMS or video driver.

I do the reconfiguration on systemd installations via script, which may need
to be adjusted according to whether /lib or /usr/lib is applicable to your
installation:
 cp -a /usr/lib/systemd/system/getty@.service
/usr/lib/systemd/system/getty@tty1.service
 sed -i 's/TTYVTDisallocate=yes/TTYVTDisallocate=no/'
/usr/lib/systemd/system/getty@tty1.service
 ln -sf /usr/lib/systemd/system/getty@tty1.service
/etc/systemd/system/getty.target.wants/getty@tty1.service
 systemctl start getty@tty1.service
 ln -sf /usr/lib/systemd/system/getty@.service
/etc/systemd/system/getty.target.wants/getty@tty2.service
 systemctl start getty@tty2.service
 ln -sf /usr/lib/systemd/system/getty@.service
/etc/systemd/system/getty.target.wants/getty@tty3.service
 systemctl start getty@tty3.service
 ln -sf /usr/lib/systemd/system/getty@.service
/etc/systemd/system/getty.target.wants/getty@tty4.service
 systemctl start getty@tty4.service
 ln -sf /usr/lib/systemd/system/getty@.service
/etc/systemd/system/getty.target.wants/getty@tty5.service
 systemctl start getty@tty5.service
 ln -sf /usr/lib/systemd/system/getty@.service
/etc/systemd/system/getty.target.wants/getty@tty6.service
 systemctl start getty@tty6.service
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fast User Switching does not seem to work
  2014-10-09  0:38 Fast User Switching does not seem to work constantine
  2014-10-09  1:11 ` Felix Miata
@ 2014-10-09 13:35 ` constantine
  2014-10-09 14:03   ` Felix Miata
  1 sibling, 1 reply; 4+ messages in thread
From: constantine @ 2014-10-09 13:35 UTC (permalink / raw)
  To: intel-gfx; +Cc: mrmazda


[-- Attachment #1.1: Type: text/plain, Size: 4822 bytes --]

Thank you for the reply!

> Does your Arch use systemd?
> Is your *buntu not using systemd?
Yes to both.

I am aware of the on-demand "feature" and did what you proposed (had
already done the same for half of the terminals).

After testing I noticed something more specific.
Suppose the following tty2,3 or VT:
1. Ctrl+Alt+F2:    logged in user in console (no X)
2. Ctrl+Alt+F3:    logged in user in console (no X)
3. Ctrl+Alt+F4:    logged in user in Desktop Environment (X)
4. Ctrl+Alt+F5:    logged in user in Desktop Environment (X)

>From 1 to 2, or 2 to 1 there is no delay.
>From 1,2 to 3, or 1,2 to 4 there is **no** delay.
>From 3,4 to 1,2 there **is** delay.
>From 3 to 4, or 4 to 3, there **is**delay.

Do you think I should post to systemd for this?




constantine

On Thu, Oct 9, 2014 at 12:38 AM, constantine <costas.magnuse@gmail.com>
wrote:

> Hello all!
>
> I am encountering a peculiar problem with Fast User Switching or Kernel
> Mode Setting and I do not know how to troubleshoot it.
>
> When I run two (or more) Virtual Terminals switching between them
> (Ctrl+Alt+F2-3, etc.) takes 2+ seconds. (That is either simply initiated
> with startx from tty2 and tty3 or as different displays with KDisplay
> Manager (kdm) in :0 and :1)
>
> I am using an intel graphics driver so I suppose KMS should be enabled by
> default and this seems to be the case, but there still are delays swithing
>  VTs.
>
> I have followed the instructions at
> http://carlosbecker.com/posts/how-to-enable-kms-on-i915-graphiccard-archlinux/
>  https://wiki.archlinux.org/index.php/kernel_mode_setting
> https://wiki.archlinux.org/index.php/Intel_graphics but I am still
> experiencing the problem.
>
> Last, I am certain it is not a hardware related issue, because I can fast
> switch in ubuntu, but not in Arch linux.
>
>
>
> Any ideas?
>
>
>
>
> $ sudo cat /sys/module/i915/parameters/modeset
> 1
>
> ### Note: ### Before starting the "process" of enabling KMS (which I
> suppose it should be enabled in the first place, right?) this value was:
>  -1
>
> $ uname -a
> Linux myhostname 3.16.4-1-ARCH #1 SMP PREEMPT Mon Oct 6 08:22:27 CEST
> 2014 x86_64 GNU/Linux
>
> $ lsmod | grep -e drm -e 915 -e kms
> crc32_pclmul        12915     0
> scsi_mod              142915   4 uas,usb_storage,libata,sd_mod
> i915                       864879  8
> button                    12909    1 i915
> i2c_algo_bit           12744    1 i915
> video                      17995    1 i915
> drm_kms_helper    49262    1 i915
> drm                         258005  10 i915,drm_kms_helper
> i2c_core                  50152    5 drm,i915,i2c_i801,drm_kms_helper,
> i2c_algo_bit
> intel_gtt                   17848    2 i915,intel_agp
>
> $ sudo lspci -vvnn | head -28 | tail -21
> 00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200
> v2/3rd Gen Core processor Graphics Controller [8086:0152] (rev 09) (prog-if
> 00 [VGA controller])
>         Subsystem: ASRock Incorporation Device [1849:0152]
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B- DisINTx+
>         Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>         Latency: 0
>         Interrupt: pin A routed to IRQ 40
>         Region 0: Memory at f7800000 (64-bit, non-prefetchable) [size=4M]
>         Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M]
>         Region 4: I/O ports at f000 [size=64]
>         Expansion ROM at <unassigned> [disabled]
>         Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
>                 Address: fee0f00c  Data: 4181
>         Capabilities: [d0] Power Management version 2
>                 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
> PME(D0-,D1-,D2-,D3hot-,D3cold-)
>                 Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>         Capabilities: [a4] PCI Advanced Features
>                 AFCap: TP+ FLR+
>                 AFCtrl: FLR-
>                 AFStatus: TP-
>         Kernel driver in use: i915
>         Kernel modules: i915
>
> $ head -10 /var/log/Xorg.0.log
> [     4.919]
> X.Org X Server 1.16.1
> Release Date: 2014-09-21
> [     4.919] X Protocol Version 11, Revision 0
> [     4.919] Build Operating System: Linux 3.16.1-1-ARCH x86_64
> [     4.919] Current Operating System: Linux myhostname 3.16.4-1-ARCH #1
> SMP PREEMPT Mon Oct 6 08:22:27 CEST 2014 x86_64
> [     4.919] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux
> root=UUID=af9a90ee-5db2-4abf-b8be-006a65e9f09e rw quiet video=SVIDEO-1:d
> [     4.920] Build Date: 21 September 2014  10:53:13AM
> [     4.920]
> [     4.920] Current version of pixman: 0.32.6
>
> ### Note: ### As kernel parameters I have also tried video=SVIDEO-1:
> d, i915.modeset=1, and nothing, but neither works.
>
>

[-- Attachment #1.2: Type: text/html, Size: 9972 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fast User Switching does not seem to work
  2014-10-09 13:35 ` constantine
@ 2014-10-09 14:03   ` Felix Miata
  0 siblings, 0 replies; 4+ messages in thread
From: Felix Miata @ 2014-10-09 14:03 UTC (permalink / raw)
  To: intel-gfx

constantine composed on 2014-10-09 13:35 (UTC):

>> Does your Arch use systemd?
>> Is your *buntu not using systemd?

> Yes to both.

> I am aware of the on-demand "feature" and did what you proposed (had
> already done the same for half of the terminals).

> After testing I noticed something more specific.
> Suppose the following tty2,3 or VT:
> 1. Ctrl+Alt+F2:    logged in user in console (no X)
> 2. Ctrl+Alt+F3:    logged in user in console (no X)
> 3. Ctrl+Alt+F4:    logged in user in Desktop Environment (X)
> 4. Ctrl+Alt+F5:    logged in user in Desktop Environment (X)

>>From 1 to 2, or 2 to 1 there is no delay.
>>From 1,2 to 3, or 1,2 to 4 there is **no** delay.
>>From 3,4 to 1,2 there **is** delay.
>>From 3 to 4, or 4 to 3, there **is**delay.

> Do you think I should post to systemd for this?

I guess any of the following could be better than here:
user-mode-linux-user
systemd-devel
xorg@freedesktop.org
arch-general
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-09 14:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-09  0:38 Fast User Switching does not seem to work constantine
2014-10-09  1:11 ` Felix Miata
2014-10-09 13:35 ` constantine
2014-10-09 14:03   ` Felix Miata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox