Acabei de instalar o Ubuntu mate 16.04 neste laptop (depois de ter o Xubuntu instalado por um tempo). Eu instalei o i3wm de suas fontes oficiais (não de fontes nativas do Ubuntu) e o XRandR parece estar quebrado.
Conectei meu laptop (Dell M4800) à minha estação de acoplamento com um monitor adicional, instalei o ARandR, configurei meus monitores como queria e, em seguida, executei o script resultante, apenas para ver o X crash e eu no login do lightdm tela.
Em seguida, mudei de i3 para Mate e usei o gerenciador de exibição deles, e aconteceu a mesma coisa.
O script xrandR que estou tentando executar é:
#!/bin/sh
xrandr --output DisplayPort-1-1 --off --output VGA-1 --off --output DisplayPort-1-3 --mode 1920x1200 --pos 2072x0 --rotate normal --output DisplayPort-1-2 --off --output eDP-1 --primary --mode 1920x1080 --pos 152x120 --rotate normal --output VGA-1-1 --off --output HDMI-1 --off --output DP-1 --off
No entanto, qualquer comando xrandr que eu dê parece causar uma falha. Quando executo isso com strace ... &> output
, obtenho:
execve(".screenlayout/work.sh", [".screenlayout/work.sh"], [/* 56 vars */]) = 0
brk(NULL) = 0x56335560f000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=106214, ...}) = 0
mmap(NULL, 106214, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7efc40ccb000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "7ELF%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%>%pre%%pre%%pre%%pre%P\t%pre%%pre%%pre%%pre%%pre%"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7efc40cca000
mmap(NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7efc406f6000
mprotect(0x7efc408b6000, 2097152, PROT_NONE) = 0
mmap(0x7efc40ab6000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c0000) = 0x7efc40ab6000
mmap(0x7efc40abc000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7efc40abc000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7efc40cc9000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7efc40cc8000
arch_prctl(ARCH_SET_FS, 0x7efc40cc9700) = 0
mprotect(0x7efc40ab6000, 16384, PROT_READ) = 0
mprotect(0x563354f24000, 8192, PROT_READ) = 0
mprotect(0x7efc40ce5000, 4096, PROT_READ) = 0
munmap(0x7efc40ccb000, 106214) = 0
getuid() = 1000
getgid() = 1000
getpid() = 7295
rt_sigaction(SIGCHLD, {0x563354d18540, ~[RTMIN RT_1], SA_RESTORER, 0x7efc4072b4b0}, NULL, 8) = 0
geteuid() = 1000
brk(NULL) = 0x56335560f000
brk(0x563355630000) = 0x563355630000
getppid() = 7293
stat("/home/mshapiro", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open(".screenlayout/work.sh", O_RDONLY) = 3
fcntl(3, F_DUPFD, 10) = 10
close(3) = 0
fcntl(10, F_SETFD, FD_CLOEXEC) = 0
geteuid() = 1000
getegid() = 1000
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x563354d18540, ~[RTMIN RT_1], SA_RESTORER, 0x7efc4072b4b0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7efc4072b4b0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7efc4072b4b0}, NULL, 8) = 0
read(10, "#!/bin/sh\nxrandr --output Displa"..., 8192) = 308
stat("/home/mshapiro/.bin/xrandr", 0x7fff47665a50) = -1 ENOENT (No such file or directory)
stat("/home/mshapiro/.cargo/bin/xrandr", 0x7fff47665a50) = -1 ENOENT (No such file or directory)
stat("/home/mshapiro/.cargo/bin/xrandr", 0x7fff47665a50) = -1 ENOENT (No such file or directory)
stat("/home/mshapiro/bin/xrandr", 0x7fff47665a50) = -1 ENOENT (No such file or directory)
stat("/home/mshapiro/.local/bin/xrandr", 0x7fff47665a50) = -1 ENOENT (No such file or directory)
stat("/usr/local/sbin/xrandr", 0x7fff47665a50) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/xrandr", 0x7fff47665a50) = -1 ENOENT (No such file or directory)
stat("/usr/sbin/xrandr", 0x7fff47665a50) = -1 ENOENT (No such file or directory)
stat("/usr/bin/xrandr", {st_mode=S_IFREG|0755, st_size=60256, ...}) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7efc40cc99d0) = 7296
wait4(-1, XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"^M
after 63 requests (63 known processed) with 0 events remaining.^M
[{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 7296
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7296, si_uid=1000, si_status=1, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]}) = 7296
read(10, "", 8192) = 0
exit_group(1) = ?
+++ exited with 1 +++
Já pesquisei googling, mas não encontrei nenhuma solução para o motivo pelo qual estou ficando temporariamente indisponível. Esse laptop tem um i7-4800MQ e uma placa gráfica FirePro.
Alguém tem alguma sugestão: (.