Use dual graphics on Linux / Windows - macOS

Hello all!
So I've been using Mac for the last years and really enjoying it, but now wanted to use Linux (more specifically Fedora) as my main OS, rather than MacOS.
The machine for doing so it's a late 2013 15" MacbookPro with NVIDIA graphics.
For getting everything setup it took a while as a lot of drivers are proprietary, but manage to get most things working (expect for sleep, that for an unknown reason is broken and the Mac takes more than 5 min to wake from sleep, and FaceTime camera not working).
The problem however is that the machine is using the NVIDIA GPU, which causes it to get very toasty and drain battery faster.
I would like to enable the iGPU, but keep the NVIDIA GPU available as sometimes I connect an external monitor using the HDMI port.
I am newbie to Linux and have little knowledge but want to try everything possible to make Fedora work as best as possible on my computer. The procedures I tried were:
-Install rEFIND and try to use an set_apple.efi thing but probably did it wrong and did not work,
-Try to modify NVRAM variables to make the mac use the iGPU by default, but when booting to Fedora still only show up the NVIDIA GPU
Any help is welcome, bur please don't say for me to stay on MacOS or that is impossible as I read from people who manage to succored.
Thanks in advance!

Related

Question: USB Tethering [CM-4.2.5]

I have been fighting tooth and nail to get this to work.
My setup I'm currently working with is:
>>1 USB cable
>>HTC Dream with CyanogenMod 4.0.4 W/ Wifi tethering capabilities through Wifi Tethering for Root Users
>>HTC Dream with CyanogenMod 4.2.5 W/ USB tethering "capabilities". Couldn't get Wifi tethering to work with this phone. It just doesn't seem to want to work.
>>EeePC 4g Surf with an nLited XP 32bit Professional install With SP2 (Realtek is the worst about drivers, so instead of being able to streamline SP3 into my install, I had to use SP2 and still had to make the realtek drivers work! A known issue with it.) The nLited part shouldn't be a problem, but if it is, I'm sure it is an easy fix. ;D
Attempts to Resolve issues/issues:
1. I have installed HTC Sync.
2. Upon connecting the phone with the USB Tethering capabilities, I have a nice little exclamation mark (!) on the NDIS blablabla in Device Managers.
3. Attempting to install the drivers does not work, because it does not seem to be capable of finding the files even though they're there. Per http://code.google.com/p/android-wired-tether/wiki/FAQ .
4. Attempting to install the drivers from http://forum.xda-developers.com/showthread.php?t=445436 does not work either. It just didn't see those drivers either.
5. Tried uninstalling the device and then rescanning. Still doesn't want to cooperate.
Why I want the phone with USB Tethering to work?:
My phone, which supports Wifi tethering, was used quite well for well over a month. This means the battery heated up to too high of temps too often and that means you lose a charge. Now imagine doing that every day, and near the end nearly 3-5 times every day. I'm surprised the battery even works as of now while posting.
Last night, I got the USB Tethering to work on a Windows 7 install on a laptop. Didn't have to do a thing. But I don't have 8GB+ of space for a Windows 7 install! Also, the laptop with Windows 7 on it isn't mine either. Not personalized and wasn't done for me. The phone, I'm just borrowing.
I hope I posted this in the right place. Someone such as myself can get lost in a gigantic forum like this. I have that newbie personality complex. (I pick up all coins/whatever currency used in every game, as much as possible for example.)
Wut do?
Update:
Tinkered with it some more.
Doing what I did makes XP stop screaming about a device that needs drivers when I connect it regularly for charging.
However, I noticed that in the troubleshooting section, it says "This Device Cannot Start."
Not sure what that means.
Nothing in the Event Viewer... Though XP's isn't the worlds greatest for verbosity.
Planning on taking some advice, that I should have already known about, and uninstalling all Android related devices and seeing what happens from there... Once my battery gets high enough to allow it to sit around with no USB cable attached. (I don't have the AC adapters anymore.)
Didn't work. Still same issue. But I freed up 200mb worth of space by uninstalling a boat load of drivers for USB devices using usbdeview.
Easy Tether Pro, $5.00 ? For usb, been using for a long while. Very simple and easy to use. On XP anyways.
Vista sucks, would never let me load the driver. I assume it would work with windows 7.

Kali OS for our Raspberry

What you guys think about it?
I gonna try it - this night I want to download an .img file for raspberry and also .iso for normal computers
Website: http://kali.org/
Download: http://www.kali.org/downloads/ (you need to chose armel architecture and then Raspberry PI version)
About (docs): http://www.kali.org/official-documentation/
Yeah I saw this also, it will be fun to use but it will not be good for cracking passwords fast because of the raspberry pi's hardware. Might test it out on mine soon
Informations from me (will be keep updated):
Didn't try the special applications yet, but I feel it boots much slower than Raspbian. Reading package lists is slower too, but it's prolly because of more apps on list, so it's possible to fix.
Use Thunar file manager - it's much faster than the second one.
Midori is shutting down without any reason.
3.8GB of SD card used after writing it (checked in file manager).
Chromium doesn't work at all.
Already decided to stop using it, just need to test tools now...
I installed it , but how do I connect to the internet? I dont see any wifi scanner to find a network.
Also i went to the command prompt and is not readying my usb wifi adapter... doesnt find wlan0
Sent from my SPH-L900 using xda app-developers app
I connected it with ethernet cable so I didn't have such a problem.
It's strange that kali doesn't see a wificard - it has many built-in drivers. Maybe you are searching wlan0, when it's for example wlan1? Did u use ifconfig and iwconfig?
From my understanding the rPi does better with hf than it does el, so it seems that if Kali OS could be compiled for the rPi using armhf instead that the performance might be better overall than running an armel version. On that note, you won't see the same speeds as a Raspbian distro merely because it is using armel compared to Raspbian which uses armhf.

Installing good ol' Windows XP on a relatively new laptop...

So, everyone
My laptop is annoying me to death because every single time i boot Windows, be it 7 or 8, i can't stay more than 30 mins without getting to Tmax and the laptop turning off. I'm currently developing a game in XNA GS 4.0 so i need Windows for the game to be done...
Question is, can i install Windows XP on my Acer V3-571G laptop with the following specs:
-Intel i5-3210M 2.5Ghz, Turbo Boost @3.1Ghz
-nVidia GT630M 2GB GDDR3 128-bit (Fermi GF108)
-Intel HD4000
-Atheros AR5BWB222 wireless a/g/n (i actually NEED this as Ethernet is already used by an old Linux PC)
-4GB RAM DDR3
-500GB HDD (must set it to Legacy mode for XP setup to boot)
-it's either Realtek HDA or Dolby Home Theater audio
-15.6" HD screen
http://forum.xda-developers.com/showthread.php?p=28602532
Sent from my GT-I9505G using Tapatalk
You can install it on whatever PC that meets the minimum requirements.
edisile said:
You can install it on whatever PC that meets the minimum requirements.
Click to expand...
Click to collapse
Just don't expect to be able to find any drivers. Your GPU will not run, neither will the WiFi, and if you're using a really new system, not even your motherboard.
Thread Closed
Senior Moderator

[Q] Hardware / Framework advice for project (Smartwatch-like thing for motorcycle)

Hey Guys
First of all: I realize that this is a rather long text, so I appreciate the effort of everyone who is going to read it!
Also, I asked a questions about 2 weeks ago, which was related to this topic, but was very specific about android wear (which I gave up on since then!).
So, actual post:
I want to build, or already am building an informational system for my motorcycle.
As the result of my work, I imagine a display (about 7 inches) in the dash of my motorcycle. It shall display information from my Smartphone (for example notifications about incoming calls etc.) as well as giving me the possibility to control the music on the smartphone (Android 5.1).
Also, I want to display further information, like speed, average speed, altitude etc. (hope you got the idea, basically just an advanced trip computer).
I started developing something, but ran into issues. I will explain my two concepts or ideas I had so far and explain, what the issues were I ran into. I then hope, that somebody here has a solution for my problem (which includes recommending hard- and software).
Firstly about my skills: I am experienced in programming "low level hardware", like Atmel's AVR Series (in plain old C) and developing the associated hardware for it. Also making custom pcb's at home isn't a problem for me, as long it doesn't come to some fancy BGA or SMD packages
On the programming side I am experienced the most in Java (and Android, which is basically Java of course). I know also C# and the .NET framework.
But I am willing to learn something new
The two ideas I had so far differed on the way how I wanted to let the raspberry pi (which I wanted to place in the cockpit) communicate with the smartphone.
In both concepts, I planned to have a raspberry pi with attached display in the cockpit on which I wanted to run a JavaFX application (already started programing). This application would then communicate with the smartphone over:
Idea 1: Java serialization:
I wanted to communicate over command objects. So for example I'd have an object for asking the altitude from the smartphone.
I'd then serialize this command object on the pi's side and deserialize on the smartphone. This isn't a problem, because there's java on either side (already got that piece working).
The smartphone would, after receiving and deserializing the object, get the actual altitude from the GPS sensor, pack the result in an answer-object, serialize it and send it back to the pi.
The issues I ran into were the following:
-Java Bluetooth library: I wasn't able to find a good, up-to-date, java library for communicate over Bluetooth in java. I then stuck to RXTX Library which did the job, but I always had the feeling of doing something "not so good". In particular I didn't want to just write on a COM-Port (which is emulated from the Bluetooth-module), because I had the feeling that COM-Ports may change after reboots if the OS feels like it, and I didn't want to build something which needed constant "tinkering". Also, writing to COM-Ports in 2015 just feels wrong, but this may be my personal problem
Idea 2: HTTP and Web Sockets
The basic idea was to have a webserver running on the smartphone and offering a REST-like API which I could access from the pi.
I also got this concept working, like so:
By using the NanoHTTPD library (from github) I was able to start a webserver on the android device. When then someone issued a POST-request on, for example, <IP>:<port>/api/music/next, the WebServer would receive this request and switch to the next song.
Actualizing data on the pi which changes often, for example the altitude, would have been achieved by using a WebSocket connection between the Java-App on the pi and the android webserver (which I also got to work).
I figured out that it would be a power consumption problem to let the smartphone offer a wifi hotspot (I don't want to have to connect the smartphone to cables on the motorcycle), so I decided to let the pi start a wifi access point (which isn't a power problem, because the pi is connected to on-board-power of the motorcycle).
However I then realized that the smartphone won't connect to an access point which doesn't offer internet access but only LAN-access.
And even if there was a way to force the smartphone to let it connect anyways, it isn't guaranteed that this will work too on future devices. And: The whole notification-stuff would have been needless, because as long as the smartphone is connected to a "dead-end wifi", it wouldn't receive emails or whatsapp-messages.
Idea 3: Using Bluetooth low energy:
It seems like the new, modern way, to let devices communicate over Bluetooth is to use Bluetooth low energy (BLE). (But I never worked with it before!).
However, there seems to be little to no support on raspberry pi for it, and it seems to be impossible to find a library for java which helps in using BLE. (If anyone knows one, please let me know).
I then thought about replacing the raspberry pi with an android board, because android has support for BLE. But I wasn't able to find a board which is supported from android 5.1+ and offers support for BLE. Even the Odroid-boards don't seem to support android >4.4 and BLE.
Summary:
In general I liked the second and third option much better. It seemed to be the the more versatile, modern way. The first way felt a bit like a hack.
However I found those problems I presented above, and until now, I couldn't think of a way around it.
If anyone here:
1) Solved this problem already
2) Knows a really good, NON-HACKY, community supported, Java (BLE) Bluetooth library
3) Knows a language or framework which would be well suited to solve the problem
4) Has another good idea how to solve it
Please let me know!
I just want to build something sophisticated, (which I could maybe make an open source project out of it) which isn't hacky.
I mean, the problem has to be solvable, look at the Pebble smartwatch. They also solved it without android wear.
I really want to emphasise that this is an open question. I am not limited / fixed on Java, Raspberry pi or anything.
I those have two requirements.
1) I don't want to connect the smartphone to a cable, either for data or for power
2) The solution needs to be something power saving, so no hotspot on the android device
3) Non-hacky, sophisticated solution
Best regards
Me =)
PS: As English isn't my native language, I maybe put some sentences wrong or wasn't able to express something clearly and unambiguous.
Please feel free to ask, I'd be pleased to clear any questions!
Any updates?
Hi!
I know this is an old thread, but I'm struggling with a similar issue - except I want to use it for roadcycling. Did you have any luck with your project?
All the best
Marius

Archlinux with LibHybris

I made this about... 2 years ago. I never shared it with anyone. As I recall, it runs Gnome with X11 or with Wayland utilizing android graphic drivers. If you run Wayland and want to use X11 it then uses XWayland. XWayland works, except for it only works with the first mouse click. I basically took as much sailfish stuff as I could and made it run on ArchLinux, this was with pulseaudio, and bluetooth I think, except I never did get hardware accelerated codecs to work (GST Droid). I also played with Hawaii.. http://hawaiios.org/download/distros/ Which is included, although it never ran that well. And weston is also an option to use with this, you can see this with the LightDM login screen. Remember this is 2 years old. If you upgrade pulse audio or anything else it might break everything because of the kernel and systemd and god knows what else.
Also, I don't currently have a touchpad to play with. If I recall this zip file has a kernel and a rootfs.tar.gz inside, and.. I am not sure what partition you stick it in, probably /dev/store/ubuntu... So.... Maybe when I get a touchpad, I can figure it out, or play with this again.
https://drive.google.com/open?id=0B0ERXWZfh_RJNlR3VHhiUmNra1E

Categories

Resources