Peppermint OS

Support => Hardware => Topic started by: Brotherred on February 19, 2016, 01:40:17 am

Title: Re: Suspend or Hibernate fail (Solved) [Not Solvable for SiS drivers]
Post by: Brotherred on February 19, 2016, 01:40:17 am
This last thing. Besides not having full sudo on my main user. I can not suspend to disk or hibernate. I did know a little bit about looking up this issue a little before and I started working from instructions in our forum here at link: http://forum.peppermintos.com/index.php/topic,744.msg6509.html#msg6509

Like the user in that forum I do have ecrypted /home and swap  But swapon gives some weird output. Before that is the terminal output that I was getting as I followed the instructions from that other thread.

Code: [Select]
sudo fdisk -l
[sudo] password for administrator:

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7b7fa1eb

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2046   155910824    77954389+   5  Extended
/dev/sda2       155912192   156301311      194560   82  Linux swap / Solaris
/dev/sda5            2079    88190975    44094448+  83  Linux
/dev/sda6        88193024   104081245     7944111   83  Linux
/dev/sda7       104081408   138575871    17247232   83  Linux
/dev/sda8       138577920   149891071     5656576   83  Linux
/dev/sda9       149893120   152733695     1420288   83  Linux
/dev/sda10      152735744   155910143     1587200   82  Linux swap / Solaris



administrator@SnappyPenquen ~ $ swapon -a
swapon: /dev/mapper/cryptswap1: stat failed: No such file or directory
administrator@SnappyPenquen ~ $ ls /dev/mapper
control
administrator@SnappyPenquen ~ $ ls /dev/mapper
control
administrator@SnappyPenquen ~ $ swapon --summary
Filename Type Size Used Priority
administrator@SnappyPenquen ~ $

I perhaps should have dealt with is first... The situation here is similar to the other thread but I did not want to jump in on that guy. Thanx all.
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 19, 2016, 02:32:46 am
Can you post the contents of:
Code: [Select]
gedit /etc/fstaband the output from:
Code: [Select]
mountand
Code: [Select]
sudo lshw -C displayand
Code: [Select]
free -m
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 19, 2016, 09:36:52 pm
/etc/fstab
Code: [Select]
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda8 during installation
UUID=ee0a8ea2-cf6a-4a16-9f8e-f45fca9148d5 /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda9 during installation
UUID=20ccf008-392c-4f52-8207-0ece24f260fd /boot           ext4    defaults        0       2
# /home was on /dev/sda5 during installation
UUID=7e08b69b-0698-4016-97e1-be5aad2f0989 /home           ext4    defaults        0       2

mount
Code: [Select]
/dev/sda6 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sda9 on /boot type ext4 (rw)
/dev/sda7 on /usr type ext4 (rw)
/dev/sda8 on /var type ext4 (rw)
/dev/sda5 on /home type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1002/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=administrator)

sudo lshw -C display
Code: [Select]
*-display UNCLAIMED     
       description: VGA compatible controller
       product: 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter
       vendor: Silicon Integrated Systems [SiS]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 00
       width: 32 bits
       clock: 66MHz
       capabilities: pm agp agp-3.0 vga_controller cap_list
       configuration: latency=0
       resources: memory:d0000000-d7ffffff memory:dfee0000-dfefffff ioport:cc00(size=128)

Free memory with a one gig module and other being shipped. Two slots total and 2 gig capable.

free -m
           
Code: [Select]
total       used       free     shared    buffers     cached
Mem:           971        864        106         33          3        211
-/+ buffers/cache:        649        321
Swap:            0          0          0


Regards
Title: Re: Suspend or Hibernate fail
Post by: scifidude79 on February 20, 2016, 06:48:46 am
It looks like you don't have any swap space.  If that's the case, that's why it won't hibernate.  When you hibernate the system, it's saved to the swap space and you can't hibernate with no swap.  As to why it won't suspend, I don't know.
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 20, 2016, 06:54:35 am
I have just under two gigs of swap.

Sent from my C6530N using Tapatalk

Title: Re: Suspend or Hibernate fail
Post by: scifidude79 on February 20, 2016, 07:01:35 am
Sorry, I meant to say it looks like you don't have any free swap space.  If your system is using all of your swap, that's probably still why it won't hibernate.  You have to have enough free swap space for the system to save your entire running state to the swap area for it to hibernate.
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 20, 2016, 07:14:17 am
Oh sorry, that seems odd. But too things, one I have another RAM modules being shipped and then the Swap needs to my at least two gigs

Sent from my C6530N using Tapatalk

Title: Re: Suspend or Hibernate fail
Post by: scifidude79 on February 20, 2016, 07:34:01 am
Once you install the RAM, you may be able to suspend.  Like hibernate, it depends on memory, but it uses the RAM.  If you don't have enough, you can't suspend.  More swap will supplement your RAM, but I don't know if it will allow you to suspend.  The added RAM should do the trick, I think.
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 20, 2016, 01:00:56 pm
Code: [Select]
# swap was on /dev/sda1 during installation
#UUID=8f30a6d1-77c3-4e42-8d28-9aa0178fc6a9 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0


I do not know why I am not seeing the swap partitions like I have posted them but I did just set the one swap that was about 1.5 gig, to just over four gig.  I tried closing the lid and it did not then wake back up when I tapped the power button.

Regards
Title: Re: Suspend or Hibernate fail
Post by: murraymint on February 21, 2016, 06:46:13 am
Hi Brotherred. It seems you don't have a line in your fstab file telling the system to mount your swap partition. Can you please post the output of:

Code: [Select]
blkid
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 21, 2016, 10:40:37 am
OK I am not sure what that means. Scifidude's comments about the RAM seem correct. I might wait for the RAM module to ship before trying anything else.

Sent from my C6530N using Tapatalk

Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 21, 2016, 10:43:13 am
I searched the internet for Ubuntu blkid suspend and I see a bug tracker or something. But really I just need a nap.

Sent from my C6530N using Tapatalk

Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 21, 2016, 10:45:28 am
What's the output from:
Code: [Select]
sudo swapon -athen
Code: [Select]
free -m
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 21, 2016, 06:08:59 pm
Code: [Select]
administrator@SnappyPenquen ~ $ sudo swapon -a
[sudo] password for administrator:
swapon: /dev/mapper/cryptswap1: stat failed: No such file or directory
administrator@SnappyPenquen ~ $ free -m
             total       used       free     shared    buffers     cached
Mem:           971        899         71         15         20        304
-/+ buffers/cache:        574        396
Swap:            0          0          0
administrator@SnappyPenquen ~ $

A comment was made that I need that ram Module that I am having shipped. That does seem to be the case. Do you agree? Regards.

Edit: Also I don't know why it says stat failed.
Title: Re: Suspend or Hibernate fail
Post by: AndyInMokum on February 21, 2016, 06:35:57 pm
Hi Brotherred, could you please remember to encapsulate terminal outputs with the Insert, Code # function.  For extra long outputs, please use the Spoiler, Sp function.  It preserves the original format of the output.  This makes it easier for future visitors to relate to their own issues.  These functions are found in the forum editor, above the,  :-[ Embarrassed and  the :'( Cry emoticon respectively.  I've done this for you this time - many thanks  ;).
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 21, 2016, 07:02:24 pm
Quote
A comment was made that I need that ram Module that I am having shipped. That does seem to be the case. Do you agree? Regards.

More RAM can never hurt, specially when you only have 1GB ;)

Quote
Edit: Also I don't know why it says stat failed.

It's saying that because swap isn't being activated on your system (probably because the UUID has changed for some reason), which is why "free -m" is saying you have ZERO total .. this is the reason Hibernate is failing, and it needs fixing.

Can you post the output from:
Code: [Select]
sudo fdisk -land
Code: [Select]
sudo blkidand
Code: [Select]
ls -l /dev/disk/by-uuid/and the contents of
Code: [Select]
sudo gedit /etc/crypttab
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 21, 2016, 07:20:00 pm
Code: [Select]
administrator@SnappyPenquen ~ $ sudo fdisk -l
[sudo] password for administrator:

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7b7fa1eb

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2046   155910824    77954389+   5  Extended
/dev/sda2       155912192   156301311      194560   82  Linux swap / Solaris
/dev/sda5            2079    88190975    44094448+  83  Linux
/dev/sda6        88193024   104081245     7944111   83  Linux
/dev/sda7       104083456   133951487    14934016   83  Linux
/dev/sda8       133953536   144402431     5224448   83  Linux
/dev/sda9       144404480   147245055     1420288   83  Linux
/dev/sda10      147247104   155910143     4331520   82  Linux swap / Solaris
administrator@SnappyPenquen ~ $ sudo blkid
/dev/sda2: UUID="d12596b5-79d4-4505-a713-1d1b74cccb68" TYPE="swap"
/dev/sda5: UUID="7e08b69b-0698-4016-97e1-be5aad2f0989" TYPE="ext4"
/dev/sda6: UUID="ee0a8ea2-cf6a-4a16-9f8e-f45fca9148d5" TYPE="ext4"
/dev/sda7: UUID="237315fc-205e-4051-8043-5d78b2ba18ab" TYPE="ext4"
/dev/sda8: UUID="6beaba2b-fcd1-4a18-9fa4-dbb57a771cc8" TYPE="ext4"
/dev/sda9: UUID="20ccf008-392c-4f52-8207-0ece24f260fd" TYPE="ext4"
/dev/sda10: UUID="bf57c22d-4b01-4067-b3a4-3368e15d5ddc" TYPE="swap"
administrator@SnappyPenquen ~ $



Regards
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 21, 2016, 07:57:47 pm
The ID changed of course when I increased the size of the Swap. << Oh yeah...

Sent from my C6530N using Tapatalk

Title: Re: Suspend or Hibernate fail
Post by: AndyInMokum on February 21, 2016, 09:35:19 pm
Hi Brotherred, can you send the rest to the outputs PCNetSpec has requested:
Code: [Select]
sudo blkidand:
Code: [Select]
ls -l /dev/disk/by-uuid/and finally:
Code: [Select]
sudo gedit /etc/crypttabThanks  ;).
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 21, 2016, 09:37:11 pm
Oh

Sent from my C6530N using Tapatalk

Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 21, 2016, 09:51:23 pm
Thanx for pointing that out.

ls -l /dev/disk/by-uuid
Code: [Select]
total 0
lrwxrwxrwx 1 root root 10 Feb 20 22:07 20ccf008-392c-4f52-8207-0ece24f260fd -> ../../sda9
lrwxrwxrwx 1 root root 10 Feb 20 22:07 237315fc-205e-4051-8043-5d78b2ba18ab -> ../../sda7
lrwxrwxrwx 1 root root 10 Feb 20 22:07 6beaba2b-fcd1-4a18-9fa4-dbb57a771cc8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Feb 20 22:07 7e08b69b-0698-4016-97e1-be5aad2f0989 -> ../../sda5
lrwxrwxrwx 1 root root 11 Feb 20 22:07 bf57c22d-4b01-4067-b3a4-3368e15d5ddc -> ../../sda10
lrwxrwxrwx 1 root root 10 Feb 20 22:07 d12596b5-79d4-4505-a713-1d1b74cccb68 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 20 22:07 ee0a8ea2-cf6a-4a16-9f8e-f45fca9148d5 -> ../../sda6

sudo gedit /etc/crypttab
Code: [Select]
cryptswap1 UUID=8f30a6d1-77c3-4e42-8d28-9aa0178fc6a9 /dev/urandom swap,cipher=aes-cbc-essiv:sha256

Regards
Title: Re: Suspend or Hibernate fail
Post by: murraymint on February 22, 2016, 03:54:37 am
You've now got two swap partitions there. I've never encrypted swap so I'll leave this one to the experts.
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 22, 2016, 05:52:39 am
have you got 2 distros on here ?

We need to discover which of the 2 swap partitions is the Peppermint one .. probably the easiest way to do this would be to boot the OTHER distro and find which swap partition it's using by running
Code: [Select]
swapon -sremember that MUST be run from the OTHER distro .. then post the output here.

Unless of course you KNOW which of sda2 and sda10 is the Peppermint swap partition ?
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 22, 2016, 10:36:10 am
I only have Peppermint on here. The smaller swap came from an old Hard drive config that I copied. I can't delete it without deleting the whole drive. I also don't think I can resize it. It is an extended partition. Can't both swaps be used here? If not I will delete smaller swap, I don't really need it.

Sent from my C6530N using Tapatalk

Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 22, 2016, 11:33:16 am
Okay, now I'm baffled...

You say "the smaller one is in an extended partition", yet the one using least blocks (sda2) appears to be outside the extended partition  :-\

So which of sda2 and sda10 do you want to use as the swap partition ?
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 22, 2016, 11:50:35 am
sda10 is the only one with the space. I just can do anything with sda2 with out deleting the whole drive. I thought I made that clear, sda10 is the only one that I can use if I can only have a single one. I still don't know why both can' be used.
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 22, 2016, 12:44:33 pm
maybe both can be used, I've never tried it .. but if it works it'll certainly be more complicated what with your use of both encryption and hibernation.

If you want to experiment, feel free .. otherwise, run:
Code: [Select]
sudo gedit /etc/crypttaband change the entry from:
Code: [Select]
cryptswap1 UUID=8f30a6d1-77c3-4e42-8d28-9aa0178fc6a9 /dev/urandom swap,cipher=aes-cbc-essiv:sha256to
Code: [Select]
cryptswap1 UUID=bf57c22d-4b01-4067-b3a4-3368e15d5ddc /dev/urandom swap,cipher=aes-cbc-essiv:sha256SAVE the file and exit gedit.

Now what's the output from:
Code: [Select]
sudo swapon -aand
Code: [Select]
free -m
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 22, 2016, 01:07:37 pm
It appears that I had to reboot after the edit

Sent from my C6530N using Tapatalk

Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 22, 2016, 01:13:41 pm
Code: [Select]
administrator@SnappyPenquen ~ $ sudo swapon -a
[sudo] password for administrator:
administrator@SnappyPenquen ~ $ sudo swapon -a
administrator@SnappyPenquen ~ $ free -m
             total       used       free     shared    buffers     cached
Mem:           971        900         71         10         11        373
-/+ buffers/cache:        515        456
Swap:         4229          1       4228
administrator@SnappyPenquen ~ $

That fixed the swap. We will see about the Suspend/ Hibernate. Regards
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 22, 2016, 01:32:49 pm
If it works, don't forget to mark the topic solved.
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 22, 2016, 01:42:03 pm
It doesn't work. It will not resume from hibernate. I had to hard reset. Again I have that RAM module being shipped.

Sent from my C6530N using Tapatalk
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 22, 2016, 02:28:10 pm
run:
Code: [Select]
sudo gedit /etc/initramfs-tools/conf.d/resumeI'm going to guess it currently reads
Code: [Select]
RESUME=UUID=8f30a6d1-77c3-4e42-8d28-9aa0178fc6a9if so, change it to read
Code: [Select]
RESUME=UUID=bf57c22d-4b01-4067-b3a4-3368e15d5ddcSAVE the file and exit gedit

now run:
Code: [Select]
sudo update-initramfs -uthen
Code: [Select]
sudo update-grubnow REBOOT.

Now test hibernate.

It's IMPORTANT that you REBOOT once before testing hibernate.



if it still doesn't work, post the output from:
Code: [Select]
tail /var/log/pm-suspend.log
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 22, 2016, 02:59:33 pm
Code: [Select]
sudo gedit /etc/initramfs-tools/conf.d/resume

(gedit:3257): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

 :-X Regards

After typing the code and getting that error I closed the file and then copied and pasted it from the forum and got the same error. But I am thinking now that I should make the change anyway. We will see.
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 22, 2016, 03:26:09 pm
ignore that gtk warning, it's just gedit (which is a gnome app) warning that it can't find a gnome session as Peppermint doesn't use the gnome session manager .. it's normal and nothing to worry about .. just carry on with what I suggested.
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 22, 2016, 03:30:23 pm
OK I did. But what meant to say was that it was originally a empty or nonexistent file. I will post that file and the out put of the tail message, soon.

Sent from my C6530N using Tapatalk

Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 22, 2016, 03:39:56 pm
Agian this is the contents of the file AFTER I changed them. gedit was blank BEFORE I changed the file.

sudo gedit /etc/initramfs-tools/conf.d/resume
Code: [Select]
RESUME=UUID=bf57c22d-4b01-4067-b3a4-3368e15d5ddc
It did not work. The laptop did not resume after making those changes, starting and closing the lid.

tail /var/log/pm-supend.log
Code: [Select]
administrator@SnappyPenquen ~ $ tail /var/log/pm-supend.log
tail: cannot open ‘/var/log/pm-supend.log’ for reading: No such file or directory
administrator@SnappyPenquen ~ $ tail /var/log/pm-suspend.log

Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:
kernel.acpi_video_flags = 0
vbetool not installed!
vbetool not installed!
vbetool not installed!
vbetool not installed!
/usr/lib/pm-utils/sleep.d/99video suspend suspend: success.

Mon Feb 22 18:14:45 EST 2016: performing suspend
administrator@SnappyPenquen ~ $

I could be wrong but this looks to be a consiquence of my not installing this system so much as copying the partitions to this drive and updating the installation from there. If I can apt-get insatll vbetool I will.

Regards
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 22, 2016, 03:42:43 pm
OK what's the output from:
Code: [Select]
cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 22, 2016, 03:58:29 pm
Code: [Select]
administrator@SnappyPenquen ~ $ cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
administrator@SnappyPenquen ~ $


Regards

Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 22, 2016, 04:17:24 pm
apt-get insatll vbetool
Fixed it. But I could not re-enable WiFi after resuming and the video is messed up on the left side. By the menu, I have what looks like two menu buttons and two mice as click on the menu. That's not ideal but they seem like new threads as well.

Regards

Sent from my C6530N using Tapatalk

Restarting restored these resulting issues. But of course they will almost certainly happen again upon hibernating. It's clear progress though!
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 22, 2016, 05:56:46 pm
What's the output from:
Code: [Select]
inxi -Fand
Code: [Select]
sudo lshw -C displayand
Code: [Select]
sudo lshw -C networkand
Code: [Select]
lspci -vnn | grep -i net
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 22, 2016, 06:50:29 pm
inxi -F
Code: [Select]
administrator@SnappyPenquen ~ $ inxi -F
System:    Host: SnappyPenquen Kernel: 3.16.0-60-generic i686 (32 bit) Desktop: N/A Distro: Peppermint Six
Machine:   System: AVERATEC product: 6240 Series version: 0101
           Mobo: N/A model: N/A Bios: American Megatrends version: A1011SMS V1.10 12/06/04 date: 12/06/2004
CPU:       Single core Mobile AMD Athlon 64 3000+ (-UP-) cache: 512 KB flags: (lm nx pae sse sse2) clocked at 800.00 MHz
Graphics:  Card: Silicon Integrated Systems [SiS] 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter
           X.Org: 1.16.0 driver: vesa Resolution: 1280x768@61.0hz
           GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.5, 128 bits) GLX Version: 3.0 Mesa 10.3.2
Audio:     Card: Silicon Integrated Systems [SiS] SiS7012 AC'97 Sound Controller driver: snd_intel8x0
           Sound: Advanced Linux Sound Architecture ver: k3.16.0-60-generic
Network:   Card-1: Ralink RT2500 Wireless 802.11bg driver: rt2500pci
           IF: wlan2 state: up mac: 00:11:09:ae:f5:02
           Card-2: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet driver: sis900
           IF: eth2 state: down mac: 00:0c:76:f6:b7:5c
Drives:    HDD Total Size: 80.0GB (52.6% used) 1: id: /dev/sda model: WDC_WD800BEVE size: 80.0GB
Partition: ID: / size: 7.4G used: 703M (10%) fs: ext4 ID: /usr size: 14G used: 7.4G (56%) fs: ext4
           ID: /home size: 42G used: 30G (76%) fs: ext4 ID: /boot size: 1.4G used: 45M (4%) fs: ext4
           ID: /var size: 4.9G used: 1.7G (36%) fs: ext4
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   System Temperatures: cpu: 42.8C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 148 Uptime: 2:29 Memory: 591.9/971.4MB Client: Shell (bash) inxi: 1.9.17

sudo lshw -C display
Code: [Select]
administrator@SnappyPenquen ~ $ sudo lshw -C display
[sudo] password for administrator:
  *-display UNCLAIMED     
       description: VGA compatible controller
       product: 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter
       vendor: Silicon Integrated Systems [SiS]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 00
       width: 32 bits
       clock: 66MHz
       capabilities: pm agp agp-3.0 vga_controller cap_list
       configuration: latency=0
       resources: memory:d0000000-d7ffffff memory:dfee0000-dfefffff ioport:cc00(size=128)

sudo lshw -C network
Code: [Select]
administrator@SnappyPenquen ~ $ sudo lshw -C network
  *-network:0             
       description: Ethernet interface
       product: SiS900 PCI Fast Ethernet
       vendor: Silicon Integrated Systems [SiS]
       physical id: 4
       bus info: pci@0000:00:04.0
       logical name: eth2
       version: 91
       serial: 00:0c:76:f6:b7:5c
       size: 10Mbit/s
       capacity: 100Mbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=sis900 driverversion=v1.08.10 Apr. 2 2006 duplex=half latency=64 link=no maxlatency=11 mingnt=52 multicast=yes port=MII speed=10Mbit/s
       resources: irq:19 ioport:d800(size=256) memory:dfffc000-dfffcfff memory:dffc0000-dffdffff
  *-network:1
       description: Wireless interface
       product: RT2500 Wireless 802.11bg
       vendor: Ralink corp.
       physical id: e
       bus info: pci@0000:00:0e.0
       logical name: wlan2
       version: 01
       serial: 00:11:09:ae:f5:02
       width: 32 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rt2500pci driverversion=3.16.0-60-generic firmware=N/A ip=192.168.1.181 latency=64 link=yes multicast=yes wireless=IEEE 802.11bg
       resources: irq:18 memory:dfffa000-dfffbfff

lspci -vnn | grep -i net
Code: [Select]
administrator@SnappyPenquen ~ $ lspci -vnn | grep -i net
00:04.0 Ethernet controller [0200]: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet [1039:0900] (rev 91)
00:0e.0 Network controller [0280]: Ralink corp. RT2500 Wireless 802.11bg [1814:0201] (rev 01)


Regards
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 24, 2016, 01:16:26 pm
The graphics and network properties listed here are still the same. Last night I logged out of the mobileme account (Now hopefully with normal sudo privileges) for what ever that means here...

Anyway I let the laptop hibernate and went to bed. When I sat down to the laptop today the login screen was distorted as described above on the left hand side. And it stayed that way when I logged in. Also the network was irreparably down, that is I mean without a restart. I tried restarting the network from the terminal, that and the resulting out put is below:

Code: [Select]
mobileme@SnappyPenquen ~ $ sudo service network-manager restart
sudo: unable to resolve host SnappyPenquen
network-manager stop/waiting
network-manager start/running, process 5064
mobileme@SnappyPenquen ~ $


So I was able to stop and  restart the network but that did not re-enable the WiFi. Are there any remedies for this? Is this the correct thread for these issues as they are connected to suspend resume?

Thanx again,
Regards
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 25, 2016, 04:34:28 am
We might be able to fix the network resume, but something tells  we may flogging a dead horse with the graphics as the Linux SiS drivers are rubbish.

Have you done anything specific to get the graphics working such as modifying your xorg file, like this:
http://forum.peppermintos.com/index.php/topic,3051.msg30178.html#msg30178

next time you attempt a hibernate and the wireless is dead after resume .. run this:
Code: [Select]
nmcli nm statusand copy the output to a text file .. then do whatever you need to get a connection again .. then post the output here.
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 26, 2016, 03:54:15 pm
As far as the graphics are concerned... I was thinking that after fixing resume, I was going to at some point post a thread about my games flickering. I have that issue but don't see much about it. I bring it up here because I don't know if the two issues are related.

Regards

Sent from my C6530N using Tapatalk

Games like Blob Wars Metal Blob Solid Super Tux, and 0AD all flicker.
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 26, 2016, 05:31:43 pm
They're bound to be related .. did I mention the SiS graphics drivers blow chunks in Linux  :-X
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 26, 2016, 09:41:29 pm
Sorry to report the new xorg.conf did not work. I tried it twice and I forgot to save the original. I can say that copying the the text from that thread and seeing some of my original file as I manually deleted it, they looked very similar. But I know how virtually meaningless a comment like that can be. Anyway there is no change. It does seem appropriate to move the graphics part of this discussion to that other users thread. What do you think?

As for the wifi. I simply restart and it works. When I suspend it stops and I restart and it works.  But nothing short of restarting does anything, including restarting the network. I did at one point edit a config file that according to a Peppermint thread was stopping a laptop from suspending. But I see now that that particular suspend issue was not a concern or not known at that time.

Code: [Select]
mobileme@SnappyPenquen ~ $ nmcli nm status
RUNNING         STATE           WIFI-HARDWARE   WIFI       WWAN-HARDWARE   $
running         disconnected    disabled        disabled   enabled         $
mobileme@SnappyPenquen ~ $

Regards
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on February 27, 2016, 05:48:58 am
There shouldn't have been an /etc/X11/xorg file to begin with .. there isn't one by default any more, but if you create one it *IS* acted upon.

Okay let's look at the graphics first, as if this isn't solveable there's little point in doing the wireless workaround.

Take a look at this page:
http://manpages.ubuntu.com/manpages/trusty/man8/pm-action.8.html

See the "quirks" ( such as "--quirk-vbemode-restore" and "--quirk-vbestate-restore" and "--quirk-save-pci") ?

You need to put your PC into hibernate with one of the quirks applied and test if one of them resumes properly.

So open a terminal and run:
Code: [Select]
sudo pm-hibernate --quirk-vbemode-restoreand see if it resumes without garbled graphics.

If not, try:
Code: [Select]
sudo pm-hibernate --quirk-vbestate-restoreand see if it resumes without garbled graphics.

If not, try:
Code: [Select]
sudo pm-hibernate --quirk-save-pciand see if it resumes without garbled graphics.

If you find one that resumes properly .. let us know which.
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 27, 2016, 04:30:18 pm
Those did not work. I did not restart after running them. Except after the first one when the graphics were already messed up.

Regards

Java gets me going in the morning. Tux doing Java makes him FAT.

Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 28, 2016, 09:14:13 pm
I took another look at this. This time I went through all three options, restarting every time. Once the middle one left the screen with pixel like virtical lines of primary colors. At which time I was able to drop to a prompt which I also couldn't see, but was able to ctrl alt delete to reboot.

So indeed they all failed. I will now attempt some of the other options at that site.

Java gets me going in the morning. Tux doing Java makes him FAT.

Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 28, 2016, 09:53:59 pm
The dead horse is fully beaten. I tried every one including the S3s. None of them changed a thing.

Java gets me going in the morning. Tux doing Java makes him FAT.

Title: Re: Suspend or Hibernate fail
Post by: Brotherred on February 29, 2016, 07:05:48 pm
I have come to accept the messed up graphics as they are. The issue is a relatively small graphical artifact. It's not ideal but the desktop is fully usable.

What are the WI-FI remedies?

Java gets me going in the morning. Tux doing Java makes him FAT.

Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on March 01, 2016, 07:21:38 am
when wireless IS working can you post the output from
Code: [Select]
lsmodand when wireless isn't working after a hibernate, post the output from:
Code: [Select]
lsmodand
Code: [Select]
rfkill list
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 01, 2016, 07:58:16 pm
Was rfkill list supposed to be before or after suspend?

Java gets me going in the morning. Tux doing Java makes him FAT.

Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 01, 2016, 08:18:27 pm
lsmod Network Up

Code: [Select]
Module                  Size  Used by
pci_stub               12550  1
vboxpci                22896  0
vboxnetadp             25636  0
vboxnetflt             27476  0
vboxdrv               304940  3 vboxnetadp,vboxnetflt,vboxpci
ctr                    12905  2
ccm                    17496  2
bnep                   18895  2
rfcomm                 58045  0
bluetooth             391253  10 bnep,rfcomm
6lowpan_iphc           18262  1 bluetooth
dm_crypt               22653  0
binfmt_misc            13140  1
arc4                   12536  2
rt2500pci              26843  0
rt2x00pci              13111  1 rt2500pci
rt2x00mmio             13395  1 rt2500pci

lsmod Network Down
Code: [Select]
Module                  Size  Used by
pci_stub               12550  1
vboxpci                22896  0
vboxnetadp             25636  0
vboxnetflt             27476  0
vboxdrv               304940  3 vboxnetadp,vboxnetflt,vboxpci
ctr                    12905  2
ccm                    17496  2
bnep                   18895  2
rfcomm                 58045  0
bluetooth             391253  10 bnep,rfcomm
6lowpan_iphc           18262  1 bluetooth
dm_crypt               22653  0
binfmt_misc            13140  1
arc4                   12536  2
rt2500pci              26843  0
rt2x00pci              13111  1 rt2500pci
rt2x00mmio             13395  1 rt2500pci

rfkill list
Code: [Select]
mobileme@SnappyPenquen ~ $ rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
mobileme@SnappyPenquen ~ $ rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
mobileme@SnappyPenquen ~ $

Regards
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on March 02, 2016, 08:08:59 am
Does:
Code: [Select]
sudo rfkill unblock allunblock the wireless ?

or hitting the wireless hardware switch or key combo ?
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 02, 2016, 09:55:20 pm
No, sorry.

Java gets me going in the morning. Tux doing Java makes him FAT.

Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 02, 2016, 10:00:49 pm
I tried it and retried is in alternate combinations. rfkill list is still not soft blocked, but Hard Blocked: Yes

Java gets me going in the morning. Tux doing Java makes him FAT.

Edited to remove the unnecessary quotes.

Regards  ;D

Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on March 03, 2016, 05:23:23 am
does:
Code: [Select]
sudo rmmod rt2500pcithen
Code: [Select]
sudo modprobe rt2500pcire-awaken wifi ?

if you get an error from the first of those commands .. please post it here.
Title: Re: Suspend or Hibernate fail
Post by: Slim.Fatz on March 03, 2016, 09:31:31 am
if you get an error from the first of those commands .. please post it here.

And please stop quoting yourself unnecessarily -- it makes it more difficult to understand what you are trying to say.

Regards,

-- Slim
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 03, 2016, 11:12:06 am
Sorry. That seems like another Tapatalk thing I should have deleted it.

Java gets me going in the morning. Tux doing Java makes him FAT.

Title: Re: Suspend or Hibernate fail
Post by: Slim.Fatz on March 03, 2016, 01:41:11 pm
Hi Brotherred,

OK, and I apologize for coming across in a rather unfriendly manner -- it was just getting too difficult for me to follow your problem.  ???

Regards,

-- Slim
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 03, 2016, 04:04:46 pm
It works. I didn't get any error. This I like :-)

Edited: But now it will not Hibernate. I turned off the Wi-Fi via the hardware switch and it still won't hibernate. To be clear I tried hibernate just now without and now with the hardware switch.

Java gets me going in the morning. Tux doing Java makes him FAT.
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on March 03, 2016, 04:30:20 pm
Okay now I'm confused .. what works ?

the commands I gave in my last posting should NOT inhibit hibernate  :-\
(they just unload the driver, then reload the driver)

Maybe we need to unload all 3 drivers .. then reload them.

Let me know if it was the commands from my last posting that caused wireless to come back to life, but inhibited hibernate.
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 03, 2016, 04:44:38 pm
You are (always it seems) correct, my friend. I my laptop is now after suspend and having entered that last code from you.. With Wifi restored but hibernate inhibited.

I tend to get a lot of electro magnetic interference from my laptop and it gets better when I close the lid but hibernate is definitely inhibited.

Regards

Java gets me going in the morning. Tux doing Java makes him FAT.

Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on March 03, 2016, 04:46:34 pm
Still lost  :-\

a) do those commands cause wifi to come back to life ?

b) do they also cause hibernate to stop working ?
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 03, 2016, 04:47:31 pm
Yes to both.

Java gets me going in the morning. Tux doing Java makes him FAT.

Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on March 03, 2016, 04:52:31 pm
Okey dokey, that's weird  :-\

can you post the output from:
Code: [Select]
lsmodagain
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 03, 2016, 05:04:44 pm
Ok here it is. I am not sure either how this came about. If you get a chance to point it out, please explain it to me. I keep wondering if I caused it.
lsmod
Code: [Select]
lsmod
Module                  Size  Used by
rt2500pci              26843  0
pci_stub               12550  1
vboxpci                22896  0
vboxnetadp             25636  0
vboxnetflt             27476  0
vboxdrv               304940  3 vboxnetadp,vboxnetflt,vboxpci
ctr                    12905  2
ccm                    17496  2
bnep                   18895  2
rfcomm                 58045  0
bluetooth             391253  10 bnep,rfcomm
6lowpan_iphc           18262  1 bluetooth
dm_crypt               22653  0
binfmt_misc            13140  1
arc4                   12536  2
rt2x00pci              13111  1 rt2500pci
rt2x00mmio             13395  1 rt2500pci
rt2x00lib              48886  3 rt2x00pci,rt2500pci,rt2x00mmio
mac80211              563227  2 rt2x00lib,rt2x00pci
cfg80211              422935  2 mac80211,rt2x00lib
snd_intel8x0           37321  2
snd_ac97_codec        105860  1 snd_intel8x0
ac97_bus               12642  1 snd_ac97_codec
eeprom_93cx6           13168  1 rt2500pci
snd_pcm                87194  2 snd_ac97_codec,snd_intel8x0
pcmcia                 51828  0
joydev                 17113  0
snd_seq_midi           13324  0
serio_raw              13251  0
snd_seq_midi_event     14475  1 snd_seq_midi
yenta_socket           40215  0
snd_rawmidi            25722  1 snd_seq_midi
pcmcia_rsrc            18319  1 yenta_socket
snd_seq                56592  2 snd_seq_midi_event,snd_seq_midi
pcmcia_core            22328  3 pcmcia,pcmcia_rsrc,yenta_socket
snd_seq_device         14137  3 snd_seq,snd_rawmidi,snd_seq_midi
k8temp                 12854  0
snd_timer              28648  2 snd_pcm,snd_seq
snd                    66670  11 snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_seq_device
soundcore              14599  1 snd
i2c_sis96x             13018  0
shpchp                 32143  0
mac_hid                13059  0
parport_pc             32021  0
ppdev                  17391  0
lp                     13299  0
parport                40836  3 lp,ppdev,parport_pc
btrfs                 888461  0
xor                    26221  1 btrfs
raid6_pq               97455  1 btrfs
sis900                 26534  0
psmouse                99602  0
mii                    13654  1 sis900
pata_acpi              12901  0

Regards
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on March 03, 2016, 05:10:23 pm
Is the bluetooth a separate adapter to the wireless ?
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on March 03, 2016, 05:16:46 pm
Are you able to hibernate after running
Code: [Select]
sudo modprobe -r rt2500pci rt2x00pci rt2x00lib mac80211 cfg80211then
Code: [Select]
sudo modprobe rt2500pci rt2x00pci rt2x00lib mac80211 cfg80211?
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 03, 2016, 06:13:11 pm
No sorry, that's unsuccessful.

Java gets me going in the morning. Tux doing Java makes him FAT.


Oh and I know nothing of the Bluetooth. I saw for the first time in that code when I first posted it.
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 04, 2016, 02:03:32 am
Another issue is that I always tether my phone for Internet. Anyway since your suggested code, the connection seems very easy to drop. To drop the connection and not get it back. But a restart seems to always establish the connection. I have no clue why.

Regards

Java gets me going in the morning. Tux doing Java makes him FAT.
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on March 04, 2016, 05:20:14 am
Are you able to hibernate a second time if you run:
Code: [Select]
sudo modprobe -r rt2500pcibefore going into hibernate
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 04, 2016, 11:08:44 pm
I am getting a little lost here sorry. On fresh reboot hibernate and Wifi both work ok. So I need to hibernate, so I will then have need of your previously suggested code.

Quote
does:
Code:
Code: [Select]
sudo rmmod rt2500pci

then
Code:
Code: [Select]
sudo modprobe rt2500pci

Java gets me going in the morning. Tux doing Java makes him FAT.
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 04, 2016, 11:37:57 pm
OK I believe that I follow it all OK now, and posted it that way.

So to answer your question. No I can not Hibernate. This last bit of code takes down the Wifi but I can't Hibernate.


I also can't re-enable WiFi. So a restart was required.
Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on March 05, 2016, 01:31:21 pm
I don't think this is fixable then .. though I'm still a bit baffled how unloading the driver, then reloading it somehow stops hibernation from working (I'm not doubting you, I just find it odd).
Title: Re: Suspend or Hibernate fail
Post by: Brotherred on March 05, 2016, 02:47:27 pm
Naturally I will be pouring over this for a bit. But main issues here are the issues with X that I read about so often, correct?

Java gets me going in the morning. Tux doing Java makes him FAT.

Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on March 05, 2016, 03:09:12 pm
Well I can't see how unloading/loading the wireless drivers would cause the X server to inhibit suspend/hibernate

Just as a matter of interest, if you try to put the machine into hibernate from the command line:
Code: [Select]
sudo pm-hibernatedoes it give any clues why hibernate is failing ?

or are there any clues in:
Code: [Select]
gedit /var/log/pm-suspend.log
Title: Re: Suspend or Hibernate fail (Solved) [Not Solvable for SiS drivers]
Post by: Brotherred on March 05, 2016, 03:23:05 pm
Umm it all mute (at least for a while) if the power cord just died.

Java gets me going in the morning. Tux doing Java makes him FAT.

Title: Re: Suspend or Hibernate fail
Post by: PCNetSpec on March 05, 2016, 03:53:15 pm
Ouch  :(