Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-23 Thread mcz
Additional info: --no-install-recommends might be the culprit. It seems it is  
to be used sparingly, not all the time.


I'd have to reinstall to be sure thoughn because even removing myself from  
the input group works just fine now.


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-18 Thread mcz
Well, regarding mouse and keyboard(s) being accessible from startx without  
sudo, it definitely works :)


If I have other bad surprises, now I know I can add my user to more groups  
for different purposes.
But I still don't like how it's a bit hacked (instead of a working directly  
from a clean install).

Oh well, it works for now.

And you definitely helped a lot:
* my communication style is hopefully more direct
* many important files/folders I wouldn't have noticed without you. Specially  
trying with a new user, which revealed to me the location of the xorg log  
(well hidden).


So (o^^)o thanks again albertoefg!!!




Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-18 Thread albertoefg
Maybe there is a bug related to the encryption method. It seems the problem  
is not that uncommon.


Is it working normally now?? That is great :)

I don't feel like I helped much but at least your machine is working now :D


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-18 Thread mcz

Bingo, adding my user to input did work.

But I'm not satisfied:
* .xinitrc should load X automatically, it doesn't.
* Why do I need to add my user to the input group? Do I need to belong to  
other groups just to have a functional machine?


And, uh, that would be pretty much it.


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-18 Thread mcz
It seems I need to add myself in the input group:  
https://github.com/bulletmark/libinput-gestures/issues/7


But How come I'm not into this group in the first place?
Well, I'll test that first, because there's no point to this question if it  
doesn't solve the issue.


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-18 Thread mcz
is it fine in terms of free software? If so, I guess I can find them on  
nvidia's website?
But I thought my GPU worked just fine with Nouveau (which it does, even right  
now with an incomplete startx launch).


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-18 Thread albertoefg

Also try upgrading to jxself kernel.




Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-18 Thread albertoefg

Install nvdia drivers and blacklist nv as stated here:

troubleshooting X server. (EE) Failed to load module "nv" (module does not  
exist, 0) - Ask Ubuntu -  
https://askubuntu.com/questions/90915/troubleshooting-x-server-ee-failed-to-load-module-nv-module-does-not-exist





Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-18 Thread mcz
this  
(https://unix.stackexchange.com/questions/149985/startx-cannot-open-dev-fb0-permission-denied)  
seems interesting.


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-18 Thread mcz
Before trying to fix (most likely format) my thumb drive and fetching the  
full logs, I'll reboot into the new user and try startx again. It seems  
startx might be occupied by the old user.


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-18 Thread mcz
In the original user's xorg's log, in addition to what's listed for the new  
test user:
* (WW) Falling back to old probe method for modesetting (and for fdev on the  
line efter)

* (WW) Falling back to old probe method for vesa
* (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
* (EE)xf86OpenSerial: Cannot open device /dev/input/event2 Permission denied.
* right after: (II)opening input device '/dev/input/event2' failed  
(Permission denied)

* right after: (II) failed to create input device '/dev/input/even2'
* (EE) libinput: Power Button: Failed to create a device for  
/dev/input/event2

* (EE)Preinit returned 2 for "Power Button"
* (II) Unload module: libinput (to be continued, my hands hurt :p)


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-18 Thread mcz
Good call, with the new user, I can't launch startx at all, and it seems I  
have now access to some xorg log.


The plot unfolds (I hope so)!


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread albertoefg

Wait

New Idea... Could you create a new user and see if with a new user it works?


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread albertoefg
I am getting out of ideas :/ specially because you say it works on other  
computers and it worked before.


This is weird. I hope that a fresh install will solve it then :/

Or maybe someone else could join and suggest something else?? 


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread mcz

Sure, I just added exec i3.

But my original one is like this:
#!/bin/sh
# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)
# invoke global X session script
. /etc/X11/Xsession
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # &
exec dbus-launch ck-launch-session i3
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
#export SUDO_ASKPASS=/bin/dpass.sh sudo -A $(dmenu_path | dmenu)
#export SUDO_ASKPASS="$HOME/bin/dpass.sh" sudo -A $(dmenu_path | dmenu)
# Start the window manager:
#if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
#  exec ck-launch-session dbus-launch --exit-with-session /usr/bin/i3
#else
#  exec /usr/bin/i3
#fi
# The x11 line was already there.
# The lxpolkit line is supposed to launch lxpolkit on startup.
# The i3 line was supposed to solve the issue.
# The last one works, it's to launch the config file of urxvt.

Keep in mind that I'm sure it works both on other machines and on this same  
machine, but when the partition wasn't encrypted (meaning there was 3  
partitions: for /, for /home and for /swap).


I don't have xorg-xinit, but I installed xorg --no-install-recommends, which  
also worked just fine when the partition wasn't encrypted (meaning there was  
3 partitions: for /, for /home and for /swap).
I do have both startx and xinit, and I don't remember on other installs if I  
had the .xinitrc provided as default.


I can try another WM or even a DE. But really, I see no difference with the  
working install and this one besides encryption, and a slightly different  
partitioning scheme.


Up to this point, we eliminated:
* config files (ownership and permissions, disabling some of them like bashrc  
and xinitrc)
* completely removing i3 an launching startx gives me a tty with a different  
font, and the keyboard behaves just the same (inactive, numpad led always on  
or off, depending on how it was befre launching startx)

* reinstalling xorg. Maybe purge xorg wasn't enough?
* encryption shouldn't be an issue since the partition is opened before  
reaching the tty.
* Maybe I've made a mistake during the install, but besides having a  
separated /boot, I did nothing out of the ordinary. Plus I have no boot  
issues anyway. /root (including another /boot partition without the  
initialization option), /home and /swap are just logical volumes of the same  
encrypted volume group.


What I can also try is to redo a non-encrypted install, but with the exact  
same partitioning scheme and see how it goes.


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread albertoefg

What does ~./xinitrc says could yei share it?

Could you check if you have xorg-xinit and it is configured properly?
https://wiki.archlinux.org/index.php/Xinit

Thoug, it must be because root works.. :/

Maybe install a different Desktop Environment see if it works?



Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread mcz

Uh, something new:
* I deleted i3 (apt-get purge, autoremove, clean), and startx still lands me  
in i3
* I removed the (empty) i3 folder present in .config, but I still land in  
i3...


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread mcz
As it could be important, one thing I did during the install is the  
following:

the /boot partition I set up as the one to be initialized.
But now in my directory tree, I see in / another /boot folder, and also  
another /lost+found (the same I find in /home).


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread mcz

I only have a .bashrc, and a .profile which redirects to .bashrc.
I renamed it to _old (same wit .xinitrc), the issue still remains.


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread mcz
Compared to a working install, /home, and the folders and files inside it  
have the same ownership and permissions.


I can try with a fresh copy of .xinitrc from /etc/X11/xinit and modify it  
accordingly (with exec i3).


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread mcz

OK, I'll try this, thanks again.


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread mcz
Yes, no dedicated /home encryption, but an encrypted partition containing  
/home, /root and /swap.
On the other hand, I have other fully encrypted disks (nothing installed on  
them though).


No custom config files by default yet (besides the .xinitrc for testing).

I notice now that /home belongs to root.
inside home, I have:
* my user folder which belongs to me as a user (so not root)
* I have a lost+found belonging to root
* also "." and ".." listed as belonging to root. I tried to get inside one of  
these, but it either brings me forward or back from the the folder I'm in.


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread albertoefg
As you said, checking files and directories permissions is also a good thing  
to do. 


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread albertoefg

If that doesn't... Then I would rename ~/.config/i3/config

And after that maybe .bash_profile or .bashrc or .bash

Rename them to something else, if the problem continues then you can change  
the name back to the original.


In an extreme case I would rename all ~./config to something like  
~/.config_old


The only thing I can't think of is that something in bash or in config is  
executing something you don't want, that is why root works but user doesn't.


Of course this only if /home is decrypted



Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread albertoefg

Ok.

So currently you have an install with only disk encryption apart from /boot  
but /home has not its own encryption?


Do you have any custom config files? I would delete them first


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-17 Thread mcz

Many thanks for your help albertoefg!


root user has a different config file that is not in /home but in /root

If you encrypted disk and /home when you unlock at boot you are only  
unblocking the disk but not /home


Make sure /home is decrypted before startx
On the disk where the system is installed, I created /boot and left it  
unencrypted, and used a whole partition where /home, /root and /swap were  
created.


On boot, I unput my decrypting passphrase (twice), which is supposed to  
unlock the partition containing /root, /home and /swap.

Then I input my account login and passphrase), where I land in a tty.

I didn't check the rights of the /home folder itself yet (though I did check  
the its content, which is owned by me as the user, and it belongs to my  
group).




Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-16 Thread albertoefg

I3 requires to read config which is in /home

root user has a different config file that is not in /home but in /root

If you encrypted disk and /home when you unlock at boot you are only  
unblocking the disk but not /home


Probably i3 freezes because it can't read config file and also all the other  
important files like .bash .bashrc .bash_profile and everything else.


Make sure /home is decrypted before startx


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-16 Thread mcz

You're right, let me try again this way then:
* the keyboard and mouse respond very well in the shell (well not the mouse  
of course), but after startx, which boots i3wm, it doesn't.

* the keyboard doesn't activate the screen after moments of inactivity.
* It did work after startx on an earlier non-encrypted install.
But after encrypting /home and /swap, I have this.
* i3/the X session didn't freeze as the time display progresses.
* This time I enabled the numpad, and what's odd is that he led stays on even  
if I unplug, then replug the keyboard.
I tried to switch to a tty, or even kill the X session, but neither the mouse  
or keyboard react.
* ALL of these issues cease if I use sudo startx instead, which isn't  
recommended.
* my manual .xinitrc in ~ insn't recognised (it worked on the attempt without  
encrypted partitions) because X and i3 aren't launched on startup.

* I have read and write rights, plus I'm the owner of the files in ~.
* removing .Xauthority didn't work.
* After a third install, this time only leaving /boot unencrypted,
my usb keyboard can't open the encrypted partition.


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-16 Thread mcz

No, any of the bash files are the default ones.

The i3 config is also the default (I didn't have the opportunity to copy my  
personal config yet).


It's basically a fresh install (with the drive erased) with xorg, i3 and  
pcmanfm installed.
I added a personal .xinitrc just to see if it would work the way it did  
previously (before encrypting partitions).


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-13 Thread albertoefg
Try to describe more the current problem than your guesses or previous  
problems




Describe the problem's symptoms, not your guesses

It's not useful to tell hackers what you think is causing your problem. (If  
your diagnostic theories were such hot stuff, would you be consulting others  
for help?) So, make sure you're telling them the raw symptoms of what goes  
wrong, rather than your interpretations and theories. Let them do the  
interpretation and diagnosis. If you feel it's important to state your guess,  
clearly label it as such and describe why that answer isn't working for you.




How To Ask Questions The Smart Way -  
http://catb.org/~esr/faqs/smart-questions.html#symptoms


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-13 Thread albertoefg
Did you modify ~/.bash or ~/.bash_profile or ~/.bashrc or something like  
that?



Maybe your ./config/i3/config is executing some program you have not  
installed or configured properly??


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-13 Thread mcz

sudo startx worked.
It's not recommended, so it's not a solution.


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-13 Thread mcz
I'm even more sure that i3/the X session didn't freeze as the time display  
progresses.


This time I enabled the numpad, and what's odd is that he led stays on even  
if I unplug, then replug the keyboard.
I tried to switch to a tty, or even kill the X session, but neither the mouse  
or keyboard react.
Even the Sysrg+R or something like that (I tried with and without caps) does  
nothing.


I'll try to fetch the Xorg log.
It seems I can get it with journal ctl -e _COMM=Xorg.bin

Not sure it's related yet, but I've read about:
* service dbus start && service hald start
* in /etc/rc.conf --> dbus_enable="YES"
* check the Xorg.conf in /etc/X11/

But before trying things, I want to get a more accurate diagnostic.


Re: [Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-10 Thread mcz
Encryption shouldn't be an issue after unlocking the disks/partition. I don't  
understand. The install went just the same way beyond the partitioning.


It must be something related to xorg.

It kinda makes sense for the USB keyboard not available until reaching the  
shell though.


[Trisquel-users] Keyboard + mouse not responding after startx (/home & /swap encrypted)

2017-07-10 Thread mcz

Hi,

the keyboard and mouse respond very well in the shell (well not the mouse of  
course),

but after startx, which boots i3wm, it doesn't.

At first I thought i3wm was freezing, but the mouse pointer changed from the  
waiting icon to the normal pointer after a bit (yet still immovable). And the  
keyboard doesn't activate the screen after moments of inactivity.


It did work after startx on an earlier non-encrypted install.
But after encrypting /home and /swap, I have this.
Maybe it's a matter of groups/user rights.



After a third install, this time only leaving /boot unencrypted,
my usb keyboard can't open the encrypted partition (though it worked at  
first).