Fedora 18: Difference between revisions

From JoeHacker
Line 9: Line 9:


  sudo ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h
  sudo ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h
== Issues with Wireless driver during suspend / resume ==
My wireless driver didn't suspend correctly and it acted bad when the system was resumed. I found the best solution for me was to have systemd unload the wireless module during suspend and reload during resume.
cd /etc/systemd/system
Create the following files:
pre-sleep.service
[Unit]
Description=Prepare System Sleep
[Service]
Type=oneshot
ExecStart=/usr/sbin/modprobe -r iwl4965
[Install]
WantedBy=sleep.target
post-sleep.service
[Unit]
Description=Finish System Sleep
After=suspend.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/modprobe iwl4965
[Install]
WantedBy=suspend.target
You then need to enable the new scripts
systemctl enable pre-sleep.service
systemctl enable post-sleep.service

Revision as of 00:10, 26 January 2013

Getting VMWare 9 to compile in fc18

After upgrading to Fedora 18, VMWare 9.0.1, you get and error that "Kernel headers for version 3.7.2-201.fc18.x86_64 were not found". VMWare will not compile because it cannot find the correct version.h file. Simple fix is to create a symlink and vmware will compile the needed modules.

First make sure that the compiler and header packages are installed.

sudo yum install gcc kernel-devel kernel-headers

The following command will create the link.

sudo ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h

Issues with Wireless driver during suspend / resume

My wireless driver didn't suspend correctly and it acted bad when the system was resumed. I found the best solution for me was to have systemd unload the wireless module during suspend and reload during resume.

cd /etc/systemd/system

Create the following files:

pre-sleep.service

[Unit]
Description=Prepare System Sleep

[Service]
Type=oneshot
ExecStart=/usr/sbin/modprobe -r iwl4965 

[Install]
WantedBy=sleep.target


post-sleep.service

[Unit]
Description=Finish System Sleep
After=suspend.target 

[Service]
Type=oneshot
ExecStart=/usr/sbin/modprobe iwl4965

[Install]
WantedBy=suspend.target

You then need to enable the new scripts

systemctl enable pre-sleep.service
systemctl enable post-sleep.service