Enabling nvidia-prime on Linux Mint 15.

So i was reading a article about how to enable your nvidia card full time without having to use bumblebee in Linux. So on my Laptop running Linux Mint 15 Cinnamon Edition 64bit, i had started following the steps on this page. Ubuntu Pastebin.

Not everything on this walkthrough was installing, but i did figure out how to get it work.

Here is what i did to make my Nvidia card run full time on my laptop.

 

1.) Follow the steps through the walkthrough, all the way until you get to “sudo make install” of xrandr 1.4

The creation for the xorg.conf file didn’t work out for me, so i just deleted it. Also, the .xsessionrc didn’t work either. The desktop wouldn’t load, and i just got a black screen.

2.) I then did the section where it says,

sudo add-apt-repository ppa:canonical-x/x-staging

sudo add-apt-repository ppa:xorg-edgers/ppa

sudo apt-get update && sudo apt-get upgrade

sudo apt-get install nvidia-319

Ok so note that it says nvidia-319. It does install it, but it also installs nvidia-325. When you run nvidia-settings, it actually shows version 325.15 running as your graphics driver.

3.) I skipped the part where it has you install xorg-server 1.14, but i did install the libudev0 file.

4.) I skipped down to the virtualgl section and installed that.

5.) I then grabbed nvidia-prime from here https://launchpad.net/ubuntu/+source/nvidia-prime/0.3~hybrid0.0.1/+build/4862580/+files/nvidia-prime_0.3%7Ehybrid0.0.1_all.deb

Ok so when you install nvidia-prime, it is going to ask you to install lightdm, and a few other things as well. I am not sure if it requires you to use lightdm as your login manager, but i chose to use it anyway. So my login on Mint looks like ubuntu’s login screen..lol.

6.) Reboot your computer.

Now i cant say this will work for everyone. It just worked for me. I was able to start up games / nvidia-settings without “optirun” or “primusrun”! I am very happy.

Just follow these carefully. You can always purge files if you have a error and need to go back to before this attempt.

Good Luck!

PS: you can read more about nvidia-prime enabling in Ubuntu 13.10 as well. Here

http://www.webupd8.org/2013/08/using-nvidia-graphics-drivers-with.html

-Orkultus-

 

 

 

Advertisements

How to make steam iconify after closing the window (ubuntu)

So i know there is a patch for this is the arch repositories, but nothing that i could find for Ubuntu. So i will show you what to add to your “steam” startscript in “/usr/bin”. This will allow you to iconify steam when you press the x button on the window to close it, instead of it just minimizing itself to your panel.

so we need to edit “steam” in “/usr/bin”

1.) sudo gedit /usr/bin/steam

2.) when you have it open, the first few lines should look like this.

#!/usr/bin/env bash
#
# This is the Steam script that typically resides in /usr/bin
# It will create the Steam bootstrap if necessary and then launch steam.

# Get the full name of this script
export STEAMSCRIPT=”$(cd “${0%/*}” && echo “$PWD”)/${0##*/}”

3.) in between the top comments and where it goes to “# Get the full name of this script”, i created another line and put it in there.

4.) I put in the following.

#make steam iconify after closing the window
export STEAM_FRAME_FORCE_CLOSE=1

5.) then i saved it.

So now when you start steam from your desktop icon, or menu, or terminal command, steam will open up, and when you press the [x] in the corner of the window, you will notice that it wont be on your panel, but you will still have the steam icon near your clock and other applets.

If you want things to go back to the way they were, simply just delete that line that i added, and save it. You should be back to normal the next time you start steam.

Hope this helps anyone who wondered the same.

-Orkultus-

Random Steam UI problems after Xorg updates.

Anyone else notice that after getting updates for xorg files from the “Edgers PPA”, causes Steams UI to have terrible glitches? It’s not on just one desktop environment, but so far from what i have tested, it is happening on LXDE, and Cinnamon. I try to search these things, but dont ever see anyone posting that they have this problem. I will get to the bottom of this!

-Orkultus-

EXAMPLE of a drop down menu.

steamuiproblem

Failed to connect to Bumblebee daemon after kernel updates.

Ok so ive started to notice, that sometimes..(Not always)..after a kernel update, and a restart of my system, that “Bumblebeed” doesn’t start up. I go to run a command with “primusrun” or “optirun”, and ive been getting this error.

2013/07/16 14:52:00 socat[5962] E connect(3, AF=1 “/var/run/bumblebee.socket”, 27): No such file or directory
primus: fatal: failed to connect to Bumblebee daemon: No such file or directory

So i noticed that you cant fix that issue by doing “sudo service bumblebeed start”..You just end up getting this error.

[  125.430955] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[  125.431012] [ERROR]Could not connect to bumblebee daemon – is it running?

So what it is, is that when the newest kernel gets applied..the new linux-header files dont get installed, and that’s what bumblebee is looking for.

So i after a kernel update, i just do “uname -a”… to see what kernel i am currently running, and then install the linux-header file to match with it. Then i restart the computer and bumblebee seems to start working again.

I dont know if i noticed this happening when i was using Linux Mint 15 on my laptop..but i do know that it does do it with Peppermint OS.

Anyway!..i hope i cleared up anyones confusion if you are experiencing the same issues.

-Orkultus-

Strike Suit Zero Steam Linux Beta.

So i am in the Linux beta for Strike Suit Zero on Steam. It has been rough, since alot of issues so far are bad resolution errors, and graphical glitches. I have been able to run the game on my Optimus laptop with slight graphical glitches, but well enough to actually play the game. If you are in the beta, and want to try the game out decently on a laptop with Optimus in Linux..i have made a bash script that will load the game via “primusrun”. It loads the game without steam having to be opened, but that just means you cant save your progress. So i suggest running the script with steam opened. Also note that you will get odd graphical glitches during cutscenes, and loading intros..the game will still work out pretty well. You will notice some white boxes during missions that are usually destination markers, and such. Also note, that the game loads up in fullscreen. On my laptop it loaded up into a decent resolution..so i dont even bother messing with the resolution. Changing it will just cause problems.

Anyway..here is the bash script i made.

http://www.mediafire.com/download/1p5687ul2cj0cay/opti-strike

Let me know how it works. Also dont forget that they have a forum as well, so you can read up and submit new bugs to help these guys make this game better!

http://strikesuitzero.com/forum

Have fun!

 

-Orkultus-

Also!.. my name on the forum is MintyLinux.

My Thoughts on Unity Games on Linux.

Well im gonna rant about a few pro’s and con’s about what i feel towards the Unity Engine. I am glad they made the effort to bring it to Linux, and open up so many more devs to the option to supply us with a ton more games. It has encouraged alot of other developers who dont use Unity to create more native ports of games for Linux as well.

As for the performance of the engine…well i feel it is a bit sluggish, and doesn’t even compare to the source engine(which is 10x faster and 10x better looking). Ive noticed that it does not work well with fullscreen support most of the time. How it uses mono kind of bothers me. That project felt like it was going out the window soon.

As for my thoughts about the Developers who use the Unity 4.0. I have noticed that alot of developers who say that they are going to release their game on “Linux, Windows, and Mac”, decide to build their game around this Middleware that only seems to work on Windows and Mac. This causing them to have to work even more, and take longer to release the Linux version. Why they do this, just doesn’t make sense. I know they are in a rush to get their game out and working for Windows platform first. They always are..but wouldn’t it just make things easier to work on all three versions of the game so that they all work well at launch?

I dont know..but the way the Unity team described how easy it is to export to Linux…just sounds like a lie.

As for the steam greenlight community. It makes me wonder if alot of those devs are lying about making a native client for all three OS’s just to get their game onto steam. You try and ask a dev about a Linux version, and they just run around in circles and never give you a direct answer. They always say they are using the Unity engine, but they never release the Linux version of any of their demos. Only a few have, and i thank those devs for that.

So that pretty much clears up how i feel about it. I mean it has brought some good games to Linux, and i do enjoy them. I just wish most of the devs (not all), were smarter when it came to releasing their games with it.

Getting full performance out of your Intel CPU in Ubuntu.

So i was showing my friend my stats on my Intel Core i5, and i was using “cat /proc/cpuinfo“. He looked at it and was like “Oh i need to send you a script”. He said that Ubuntu doesn’t take full advantage of Intel Processors. Mainly the i3, i5, and i7. So he gave me this script, and i ran it. So i noticed a boost in the “cpu Mhz” section..by alot.

Here is the link to my friends script.

http://www.mediafire.com/download/2x1lpl66gke0sdp/scale.sh

Here is the difference from before i ran the script and after.

BEFORE:

cat /proc/cpuinfo
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 58
model name    : Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
stepping    : 9
microcode    : 0x12
cpu MHz        : 1200.000         <—–(“This right here is default on my processor”)
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 0
cpu cores    : 2
apicid        : 0
initial apicid    : 0
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 13
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips    : 4988.57
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

processor    : 1
vendor_id    : GenuineIntel
cpu family    : 6
model        : 58
model name    : Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
stepping    : 9
microcode    : 0x12
cpu MHz        : 1200.000
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 0
cpu cores    : 2
apicid        : 1
initial apicid    : 1
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 13
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips    : 4988.57
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

processor    : 2
vendor_id    : GenuineIntel
cpu family    : 6
model        : 58
model name    : Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
stepping    : 9
microcode    : 0x12
cpu MHz        : 1200.000
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 1
cpu cores    : 2
apicid        : 2
initial apicid    : 2
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 13
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips    : 4988.57
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

processor    : 3
vendor_id    : GenuineIntel
cpu family    : 6
model        : 58
model name    : Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
stepping    : 9
microcode    : 0x12
cpu MHz        : 1200.000
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 1
cpu cores    : 2
apicid        : 3
initial apicid    : 3
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 13
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips    : 4988.57
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

As you can see, my “cpu MHz” is at 1200.000. This will go up after the script.

AFTER:

cat /proc/cpuinfo
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 58
model name    : Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
stepping    : 9
microcode    : 0x12
cpu MHz        : 2501.000               <—(“As you can tell this went up after the script”)
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 0
cpu cores    : 2
apicid        : 0
initial apicid    : 0
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 13
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips    : 4988.57
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

processor    : 1
vendor_id    : GenuineIntel
cpu family    : 6
model        : 58
model name    : Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
stepping    : 9
microcode    : 0x12
cpu MHz        : 2501.000
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 0
cpu cores    : 2
apicid        : 1
initial apicid    : 1
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 13
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips    : 4988.57
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

processor    : 2
vendor_id    : GenuineIntel
cpu family    : 6
model        : 58
model name    : Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
stepping    : 9
microcode    : 0x12
cpu MHz        : 2501.000
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 1
cpu cores    : 2
apicid        : 2
initial apicid    : 2
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 13
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips    : 4988.57
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

processor    : 3
vendor_id    : GenuineIntel
cpu family    : 6
model        : 58
model name    : Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
stepping    : 9
microcode    : 0x12
cpu MHz        : 2501.000
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 1
cpu cores    : 2
apicid        : 3
initial apicid    : 3
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 13
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips    : 4988.57
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

So now i am getting full performance/speed out of my CPU:

So now i need to explain how to get the script to work. I took the script and placed it in my “/usr/bin” folder, and did “sudo chmod +x scale.sh“. I then noticed that it does give you a few options when you run it.  “USAGE: /usr/bin/scale.sh [conservative|ondemand|userspace|powersave|performance]”. So run it like it so “sudo scale.sh performance“.

This could possible help boost the performance of intel graphics as well. I dont ever use the intel graphics card for games, but i should check it out.

I will soon explain about getting it to startup on startup. I haven’t messed with it yet. If you beat me to it, go ahead and share it.

I hope you enjoyed this post, and im sorry if has been a while since i have shared something with you. I have been busy. If you have any questions or comments please feel free to speak out to me! I will be here to help out.

-Orkultus-