Git Product home page Git Product logo

ertug / autohidpi Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 12.0 62 KB

Firefox Add-on: Set a different pixel ratio (layout.css.devPixelsPerPx) for each of your screens. Useful for mixed-DPI multi-monitor setups. For example, you can use it if you have one HiDPI (Retina) screen and one lower-DPI HD screen.

Home Page: https://addons.mozilla.org/en-US/firefox/addon/autohidpi/

License: Mozilla Public License 2.0

JavaScript 89.20% HTML 10.80%

autohidpi's People

Contributors

carlesso avatar chaoticmind avatar ertug avatar jack12816 avatar jasonuher avatar raboof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

autohidpi's Issues

Changes are permanent, and even removing extension do not cancel behaviour

I installed the extension on Linux, where it works perfectly (but I only have one screen there so couldn't verify if it would be any different).

Having firefox sync enabled, it automatically installed the extension on my mac (dual screen, one 27" 4K and on 27" 2560x1440).

It totally screwed up the 4K display making the menus and fonts utter unreadable. Worse, when moving a window from one screen to the next, it causes to only repaint 1/4 of the window once moved into the 4K screen.

I managed to have it displayed properly on the 4K screen by setting the zoom ratio in the app to 2X ; however then, the text in window on the 2560x1440 screen now all appear twice as big as it should.

If I change the configuration back to 1X so it displays well on the 2560x1440, then it becomes once again unreadable on the 4K screen.

disabling or removing the extension made no difference, the changes made appear permanent.

Window size is not automatically adjusted when switching between dual display

I use dual display with different screen resolutions, one 4k and the other 2k. I have the pixel ratio properly set for both displays. When I drag Firefox from 2k display to 4k display, the fonts on the browser is properly adjusted, but the window become smaller, apparently keeping its original pixel ratio. It might be better if the window size also be adjusted automatically.

And thanks for your work. This plugin is indeed very useful for me.

Scroll bar is hidden

The scroll bar that change pixel ration hidden but can be used (I click on the empty white space then scroll).
screenshot from 2016-09-23 20-47-42

I am using Arch Linux with Firefox v49.0

Autohidpi stopped working on FF 46.0.1

Hi,

I am really grateful for this addon and it helped me a lot with my current office setup, but in the last week, it seems, the automatic rescaling stopped working completely. Last week I have updated the system but it seems it's only linux and libmagic. I am on an old Ubuntu 14.04, but running xmonad as the window manager and no Unity. I manually change the screen with xrandr when I connect to my retina screen.

Allow to specify value directly

It would be nice to specify the value directly (text field input).
I am only seeing a (not correctly rendered - I should file a separate issue for this probably) scrollbar(?), which allows me to use 1.5, but not e.g. 1.4 or even 1.42.

Firefox, with this addon, changes DPI of content of all Firefox windows to the DPI of the display w/ currently active window

I'm using Firefox 55 on Solus. I have a 4K monitor next to a 1080p monitor of a similar, smaller size. I tell AutoHiDPI to use 1.5x on the 4K display, and 1x on the 1080p display. Currently, with this add-on, those values are remembered for each screen, but aren't applied until you make the window active, and when that happens, all Firefox windows are given that pixel ratio - the content area and icons, anyway. The Firefox interface sizes aren't corrected, just the graphics within them. I can provide screenshots if you want me to.

Toggle button?

It would be better to provide a button to toggle this property regardless of options in the preferences?

No Thunderbird Support

AutoHiDPI works well in Firefox, but Thunderbird (which has the same DPI problem) won't install the extension. Hacking install.rdf to add Thunderbird's GUID makes installation possible, but the extension does nothing once installed.

Strange behavior on debian jessie

I am using debian jessie (stable) and Iceweasel (Firefox) 31.8.0 with AutoHDPI 1.2.1.

When I run Iceweasel firstly after boot, AutoHDPI does not work. I mean, scaling is not in effect.
Then I close Iceweasel and restart, it works.
Then I restart Iceweasel, and it stops working.
Then I restart Iceweasel, and it works.

This is keep going like this.

Scaling sometimes becomes inactive upon reactivating Firefox window. It happens randomly as it seems. Restarting Firefox solves this error temporarily.

width not always calculated correctly

It seems window.screen.availWidth is not only dependent on x (aka layout.css.devPixelsPerPx), but also on the 'manual' (ctrl=-/ctrl==) zoom level.

Not taking that into account leads to not calculating the screen width correctly.

Some websites report different screen dimensions

Some websites (such as https://bbs.archlinux.org/) will report different screen dimensions. For example, I have a 4k monitor (width=3840 height=2160 left=0 top=0) When visiting https://bbs.archlinux.org/ it reports the screen dimensions as width=4224 height=2376 left=0 top=0. As soon as I click into the widget to adjust the scaling factor, the screen dimensions revert to the correct values, which means I cannot adjust the scaling factor when visiting the website.

Firefox 57 does not support this add-on

Thanks to this add-on firefox was the unique app that can really use in my hdpi laptop connected to a NO-hdpi external monitor.

Now with the new firefox (ver. 57) this add-on is not working anymore.

Are you planning to update your source code?

Thanks for your work,
Massimo

Scaling factor intermittently resets to default value

On my Chromebook Pixel (resolution 2560x1700), the scaling factor sometimes randomly gets reset to its default value. I haven't been able to identify what triggers this behaviour but it seems to happen when switching between windows, e.g. tab-switching between Firefox and another application. I'm not changing the zoom level manually.

I'm using AutoHiDPI 1.1 on Firefox 35.0.1 for Ubuntu. The HiDPI screen width is set to '2400' and the Pixel ratio to '2.0' in the add-on config.

The issue doesn't appear when the add-on is disabled and the scaling factor is manually set to 2.0 in Firefox's config.

I'm aware this might be tricky to debug without more info as to what might be causing the problem so if there's any more data I can give to help debug the issue I'm happy to oblige.

Certain websites cause threshold to fail

Certain website seem to be doing weird things with the availableWidth value.

The addon works great most of the time, but a few sites (namely: gmail and facebook) will cause the tab to switch back to the default pxper value.

Hangouts, google docs, and youtube seem to work fine, so it seems to be restricted to gmail (meaning it's not something they do in the core framework)

I'm using 1.2.1-signed on FF 44.02, ubuntu wiley with i3 window manager ver 4.11

Allow user-defined pixel ratios

Hey, thanks for making this addon, it's really useful.

It'd be nice to be able to define my own pixel ratio, 1.5x and 2x are both too large for my needs.

Breaks when changing virtual desktops

I have a 1440p laptop screen connected to a 1080p desktop monitor. AutoHiDPI works properly when moving Firefox between them, but if I'm looking at Firefox on the hidpi screen and switch virtual desktops, when I switch back the text is tiny. After about half a second it sets the size to the right value and reflows.

This is on Ubuntu with Unity.

Thanks for a great extension BTW. Aside from this, AutoHiDPI is super useful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.