Sign in to follow this  
Followers 0
tekio

When the Latest Synaptics Driver Is Doesn't Quite Work...

1 post in this topic

Just found a huge bug in the Synaptics driver for my XPS 13, 9343. Apparently it will crash, not detecting the gesture when dragging with one finger and putting another on the touchpad - to continue dragging.

At first the cusor will act really flaky - then finally X will crash within 15 - 20 minutes....  The fix is pretty quick and dirty. BUT it works!  :-)

 

I guess with Linux there is always a way (no matter how ugly):

#!/bin/bashFILE=":0.log"# =Path to Xorg.logFILE_PATH="/var/log/mdm/"FULL_FILE_PATH=$FILE_PATH$FILEDATE=`date +%b-%d-%y:%T`#########################if [[ -e "$FULL_FILE_PATH" ]]	then	if [ $(grep -c "\(EE\)" $FULL_FILE_PATH) -gt 0 ]		then 		if  modprobe -r "i2c_hid" && modprobe -i "i2c_hid"			then			sleep 4   #sleep 4 seconds to make sure logs are update after re-inserting i2c module			rm $FILE_PATH/* && touch $FULL_FILE_PATH && chmod 700 $FULL_FILE_PATH			echo "$DATE :: version 2 :: i2c-hid module successfuly reinserted!" >> /var/log/i2c-revive.log		else			echo $FULL_FILE_PATH			echo "$DATE :: version 2 :: error problem wih module load/unload." >> /var/log/i2c-revive.log		fi	else		echo "$DATE :: version 2 :: no error in Xorg file" >> /var/log/i2c-revive.log	fielse	echo "$DATE :: version 2 :: error $FILE not found or not a regular file." >> /var/log/i2c-revive.logfi
#!/bin/bash# =Name of most recent Xorg.logFILE="Xorg.0.log"# =Path to Xorg.logFILE_PATH="/var/log/"FULL_FILE_PATH=$FILE_PATH$FILEDATE=`date +%b-%d-%y:%T`#TMP_LOG=""#########################if [[ -e "$FULL_FILE_PATH" && -f "$FULL_FILE_PATH" ]]	then	#:DEBUG echo "the file is there and a regular file!"	if [ $(egrep -c "\(EE\)" $FULL_FILE_PATH) -gt 0 ]		then		TMP_LOG="$(grep -v "\(EE\)" $FULL_FILE_PATH)" 		if  modprobe -r "i2c_hid" && modprobe -i "i2c_hid"			then			sleep 4   #sleep 4 seconds to make sure logs are update after re-inserting i2c module			rm $FULL_FILE_PATH			echo "$TMP_LOG" > $FULL_FILE_PATH && chmod 700 $FULL_FILE_PATH #Modified			echo "$DATE :: i2c-hid module successfuly reinserted!" >> /var/log/i2c-revive.log		else			echo "$DATE :: error problem wih module load/unload." >> /var/log/i2c-revive.log		fi	else		echo "$DATE :: no error in Xorg file" >> /var/log/i2c-revive.log	fielse	echo "$DATE :: error $FILE not found or not a regular file." >> /var/log/i2c-revive.logfi

Screenshot_from_2015_07_16_07_33_20.png

 

EDIT: looking over that, the logs should probably not be executable. LOL Long night......

Edited by tekio
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0