jimbit
7 February 2014 04:16
1
Hi there,
I recently installed Ubunut 12.04 LTS alongside my Windows 7(dual partition). Everything was working fine for the last few days. Today however, I tried to get my graphic tablet(Huion P608N) working on Ubuntu and I was following some wiki guides about installing the driver for it, installing wizardpen, wine, etc.
After I finished all that, I rebooted to see if the tablet was working. From the boot screen, I chose the regular boot option for Ubuntu. Then i get a black screen with a few lines of code, followed by the purple Ubuntu screen, and finally a black screen that says “Cannot write to bytes: Broken pipe.”
I’ve googled around, and tried a few things since this doesn’t seem to be a very rare problem, but to no avail.
Also, I am encountering the exact problem that this person faced: 12.04 - Cannot write bytes: Broken pipe - Ask Ubuntu .
Any help would be appreciated.
you mean you’re getting the gedit error ?
You can’t run gedit in a console.
Can you post a link to the instructions you were following ?
And (because of that link) did you also install some graphics drivers … or reboot whilst something was installing ?
jimbit
9 February 2014 03:06
3
I’m not sure what you mean by gedit error? I cannot log in to the computer, in fact, right when the login screen should appear, I get the “Could not write bytes: broken pipes” screen.
This is the driver I installed for the tablet:
and GitHub - DIGImend/uclogic-tools: UC-Logic graphics tablet diagnostic tools
These are the instructions for installing the wizardpen(actually it was a different website- a wikia- but I cannot seem to find it since I can’t access the browser history on Ubuntu, they are very similar instructions though):
https://help.ubuntu.com/community/TabletSetupWizardpen#Setting_up_your_tablet
I did update libusb to the most recent version.
When you get that error, are you able to drop to a console (text command line prompt) by hitting
Ctrl+Alt+F2
then log in ?
jimbit
9 February 2014 04:41
5
From that error screen, I can’t get into anything. I can only turn of the machine from pressing the power button.
However, if I spam Ctrl+Alt+F1 before it appears I can get to a terminal and log in.
Can you navigate (change directory) to the source directories of those 2 apps you installed and run:
sudo make remove
from each ?
jimbit
9 February 2014 04:56
7
They are all on my Desktop currently. Should I cd into the file and then do sudo make remove?
I am asking just because they are folders with multiple files/folders in them.
cd(ing) into the directory that contains the make file, then running:
sudo make remove
should uninstall the app
So you need to be in the same directory you were in when you ran “make install” … if you get my meaning.
Had you created an xorg.conf file whilst trying to get the tablet to work ?
(or even better had you backed up xorg.conf at some point ?)
If so, have you tried renaming it and seeing if you can boot ?
jimbit
9 February 2014 05:12
10
Ok, for the wizardpen one, I navigated to the “src” directory which contains Makefile.am, Makefile.in, wizardpen.c, wizardpen.h
But running sudo make remove gives me the following error:
(I also tried this in the main folder which also contains the same Makefile.am and Makefile.in, but also got the same error)
make: ***No rule to make target ‘remove’. Stop.
jimbit
9 February 2014 05:17
11
And no, I am not sure about the xorg.conf file. I will try to find it and rename it to see if that will help.
Try this:
sudo mv -v /etc/X11/xorg.conf /etc/X11/xorg.conf.old
then
sudo mv -v ~/.Xauthority ~/.Xauthority.old
then
sudo service lightdm start
or
sudo service lightdm restart
did Ubuntu start … or were there any errors from that last command.
jimbit
9 February 2014 05:31
13
After running the first command I am getting an error:
mv: cannot stat ‘etc/X11/xorg/conf’ : no such file or directory
Perhaps, I am running the command in the wrong place? I ran it in the wizardpen folder and in the home directory to be check. Received same error on both tries.
jimbit
9 February 2014 05:34
14
Just checked the /etc/X11 folder… Found xorg.conf.d and xorg.conf.failsafe but did not see xorg.conf
jimbit
9 February 2014 05:36
15
After trying the lightdm restart command, it went straight to the could not write bytes: broken pipe screen
OK, you’re going to need to look through the Xorg logs for clues/errors.
This would be easier done from a LiveCD or LiveUSB, have you got one handy
The logs are located at:
/var/log
and will be called
Xorg.0.log
Xorg.1.log
etc
Might also want to look in
~/.xsession-errors
I’m off to bed now, but will be online tomorrow.
jimbit
9 February 2014 05:51
17
I have a live CD that I can boot from, yes.
Okay, I will check those directories.
Thank you very much for all your help tonight, goodnight.
Thank me if we solve it tomorrow
Goodnight.
jimbit
9 February 2014 20:11
19
So, I booted from a live cd and found ‘Xorg.0.log’ and ‘Xorg.0.log.old’
I cannot open Xorg.0.log.old though.
What sort of thing should I be looking for in the Xorg.0.log file?
First of all, are you looking on the hard drive and not the live session ?
From the liveCD, open the file manager and click (in the left hand panel) on the hard drive
Then open a terminal and post the output from:
mount | grep media
Have you got tthe Live session internet enabled … either connected wirelessly or with an ethernet cable ?